Skip to content

Commit

Permalink
fix ref warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dickeyy committed Jun 6, 2024
1 parent 20f5838 commit d204386
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/web/components/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ export default function Editor({
return (
<Plate
initialValue={content ? JSON.parse(content) : undefined}
onChange={(value) => {
onChange={(value: any) => {
setContent(JSON.stringify(value));
}}
>
<PlateContent
ref={editorRef}
className={`w-full border-0 p-0 font-light leading-loose shadow-none focus:outline-none focus-visible:border-0 focus-visible:ring-0
${isBlured ? "blur-[8px]" : ""}
${metadata.font === "serif" ? "font-serif" : metadata.font === "sans" ? "font-sans" : "font-mono"}
Expand Down

0 comments on commit d204386

Please sign in to comment.