diff --git a/client/src/components/Forms/PostFormCard.tsx b/client/src/components/Forms/PostFormCard.tsx index cb9ca6b..ad5d749 100644 --- a/client/src/components/Forms/PostFormCard.tsx +++ b/client/src/components/Forms/PostFormCard.tsx @@ -50,10 +50,10 @@ const tagMapping = { 'Quote': ['q', 'p'] }; -const NewNoteCard = ({ - refEvent, - tagType - }: FormProps) => { +const NewNoteCard = ({ + refEvent, + tagType +}: FormProps) => { const [comment, setComment] = useState(""); const [file, setFile] = useState(""); const [sk, setSk] = useState(generatePrivateKey()); @@ -67,7 +67,8 @@ const NewNoteCard = ({ const [difficulty, setDifficulty] = useState( localStorage.getItem("difficulty") || "21" ); - + const [fileSizeError, setFileSizeError] = useState(false); + const [uploadingFile, setUploadingFile] = useState(false); const [doingWorkProp, setDoingWorkProp] = useState(false); @@ -83,7 +84,7 @@ const NewNoteCard = ({ if (tags) { tags.forEach(tag => unsigned.tags.push([tag, refEvent[tag === 'p' ? 'pubkey' : 'id']])); } - + if (tagType === 'Quote') { setComment(comment + ' nostr:' + nip19.noteEncode(refEvent.id)); } @@ -145,12 +146,12 @@ const NewNoteCard = ({ setDoingWorkProp(true); }} > - +