mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
improved error pop-up design
This commit is contained in:
@@ -36,6 +36,8 @@ const StyledContainer = styled(ToastContainer)`
|
||||
.Toastify__toast {
|
||||
border-radius: 0px;
|
||||
font-size: 11pt;
|
||||
animation-duration: 0s;
|
||||
border: 1px solid #fee9cd;
|
||||
}
|
||||
`;
|
||||
|
||||
|
||||
@@ -161,9 +161,6 @@ const Catalog = ({ setBodyStyle }) => {
|
||||
await comment.publishChallengeAnswers(challengeAnswers)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const onError = (error) => console.error(error)
|
||||
|
||||
|
||||
const getChallengeAnswersFromUser = async (challenges) => {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user