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
+4 -2
View File
@@ -34,7 +34,6 @@ const Pending = () => {
const account = useAccount();
const comment = useAccountComment({commentIndex: index});
const setErrorMessage = useError();
useEffect(() => {
setSelectedAddress(comment?.subplebbitAddress);
@@ -56,10 +55,13 @@ const Pending = () => {
if (errorString) {
setErrorMessage(errorString);
}
}, [errorString, setErrorMessage]);
}, [errorString]);
const [visible] = useState(true);
const [errorMessage, setErrorMessage] = useState(null);
useError(errorMessage, [errorMessage]);
const navigate = useNavigate();
const [commentMediaInfo, setCommentMediaInfo] = useState(null);
const fallbackImgUrl = "assets/filedeleted-res.gif";