Revert "refactor toasts"

This reverts commit db2e273ea6.
This commit is contained in:
Tom
2023-06-07 18:26:03 +02:00
parent db2e273ea6
commit 37d49668e4
14 changed files with 87 additions and 121 deletions
+3 -2
View File
@@ -22,18 +22,19 @@ const ReplyModal = ({ isOpen, closeModal }) => {
} = useGeneralStore(state => state);
const account = useAccount();
const setErrorMessage = useError();
const nodeRef = useRef(null);
const nameRef = useRef();
const commentRef = useRef();
const linkRef = useRef();
const [errorMessage, setErrorMessage] = useState(null);
const [triggerPublishComment, setTriggerPublishComment] = useState(false);
const [selectedText, setSelectedText] = useState('');
const [isMobile, setIsMobile] = useState(window.innerWidth <= 480);
useError(errorMessage, [errorMessage]);
useEffect(() => {
const handleResize = () => setIsMobile(window.innerWidth <= 480);