improved error pop-up design

This commit is contained in:
plebbitor
2023-03-14 11:12:46 +01:00
parent ca304d9f23
commit 60e7b0dacc
3 changed files with 3 additions and 4 deletions
+2
View File
@@ -36,6 +36,8 @@ const StyledContainer = styled(ToastContainer)`
.Toastify__toast {
border-radius: 0px;
font-size: 11pt;
animation-duration: 0s;
border: 1px solid #fee9cd;
}
`;
-3
View File
@@ -161,9 +161,6 @@ const Catalog = ({ setBodyStyle }) => {
await comment.publishChallengeAnswers(challengeAnswers)
}
}
const onError = (error) => console.error(error)
const getChallengeAnswersFromUser = async (challenges) => {
+1 -1
View File
@@ -2,7 +2,7 @@ import { toast } from 'react-toastify';
const onError = (error) => {
return toast.error(error.toString(), {
position: "bottom-center",
position: "top-right",
autoClose: false,
hideProgressBar: false,
closeOnClick: false,