removed pending index success toast

This commit is contained in:
plebbitor
2023-04-23 08:24:52 +02:00
parent 97be116961
commit ccc4476f78
6 changed files with 2 additions and 32 deletions
+1 -12
View File
@@ -36,9 +36,8 @@ const Pending = () => {
const [visible] = useState(true);
const [errorMessage] = useState(null);
const [successMessage, setSuccessMessage] = useState(null);
useError(errorMessage, [errorMessage]);
useSuccess(successMessage, [successMessage]);
const navigate = useNavigate();
const [commentMediaInfo, setCommentMediaInfo] = useState(null);
const fallbackImgUrl = "/assets/filedeleted-res.gif";
@@ -59,16 +58,6 @@ const Pending = () => {
setCommentMediaInfo(mediaInfo);
}
}, [comment]);
useEffect(() => {
const toastFromStorage = localStorage.getItem("toastMessage");
if (toastFromStorage) {
setSuccessMessage(toastFromStorage);
localStorage.removeItem("toastMessage");
} else {
return;
}
}, []);
return (