diff --git a/src/components/reply-modal/reply-modal.tsx b/src/components/reply-modal/reply-modal.tsx index 769e36bc..76c84bf7 100644 --- a/src/components/reply-modal/reply-modal.tsx +++ b/src/components/reply-modal/reply-modal.tsx @@ -13,7 +13,6 @@ import usePublishReply from '../../hooks/use-publish-reply'; import useIsMobile from '../../hooks/use-is-mobile'; import { useFileUpload } from '../../hooks/use-file-upload'; import styles from './reply-modal.module.css'; -import { LinkTypePreviewer } from '../post-form'; import { capitalize, debounce } from 'lodash'; import { useSpring, animated } from '@react-spring/web'; import { useDrag } from '@use-gesture/react'; @@ -38,7 +37,6 @@ const ReplyModal = ({ closeModal, showReplyModal, parentCid, parentNumber, threa }); const account = useAccount(); const { displayName } = account?.author || {}; - const [url, setUrl] = useState(''); const textRef = useRef(null); const urlRef = useRef(null); const lastSelectionStartRef = useRef(0); @@ -263,7 +261,6 @@ const ReplyModal = ({ closeModal, showReplyModal, parentCid, parentNumber, threa const { isUploading, uploadedFileName, handleUpload } = useFileUpload({ onUploadComplete: (uploadedUrl: string) => { if (uploadedUrl) { - setUrl(uploadedUrl); if (urlRef.current) { urlRef.current.value = uploadedUrl; } @@ -314,16 +311,7 @@ const ReplyModal = ({ closeModal, showReplyModal, parentCid, parentNumber, threa />
- { - setUrl(e.target.value); - setPublishReplyOptions({ link: e.target.value }); - }} - /> + setPublishReplyOptions({ link: e.target.value })} />