diff --git a/client/components/edit-document/index.tsx b/client/components/edit-document/index.tsx index 4d6ab562..0bd2ff19 100644 --- a/client/components/edit-document/index.tsx +++ b/client/components/edit-document/index.tsx @@ -82,7 +82,7 @@ const Document = ({ remove, title, content, setTitle, setContent, initialTab = ' if (skeleton) { return <> - +
{remove && } @@ -98,7 +98,7 @@ const Document = ({ remove, title, content, setTitle, setContent, initialTab = ' return ( <> - +
{ + const [placeholder, setPlaceholder] = useState(titlePlaceholders[0]) + useEffect(() => { + // set random placeholder on load + setPlaceholder(titlePlaceholders[Math.floor(Math.random() * titlePlaceholders.length)]) + }, []) return (
Drift