Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | 494x 494x | import { ToastContainer as ToastifyContainer } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
import styled from "@emotion/styled";
const ToastContainer = styled(ToastifyContainer)`
width: auto;
height: auto;
.Toastify__toast {
width: 473px;
min-height: 70px;
padding: 11px 16px 11px 8px;
margin: 0 0 16px auto;
border-radius: 8px;
background-color: #292727;
box-shadow: 0px 20px 24px -4px rgba(16, 24, 40, 0.08),
0px 8px 8px -4px rgba(16, 24, 40, 0.03);
}
.Toastify__toast-body {
margin: 0;
padding: 0;
}
.Toastify__toast-body > div {
height: auto;
}
@media (max-width: 600px) {
.Toastify__toast {
min-height: 48px;
padding: 6px 16px 6px 8px;
width: 360px;
}
}
`;
const Toast = () => {
return (
<ToastContainer
limit={3}
position="bottom-right"
autoClose={2000}
hideProgressBar={true}
newestOnTop={false}
closeOnClick={true}
closeButton={false}
icon={false}
rtl={false}
pauseOnFocusLoss
draggable
draggableDirection="x"
draggablePercent={20}
pauseOnHover
/>
);
};
export default Toast;
|