feat: introduce notistack for snackbars

This commit is contained in:
Ali BARIN
2021-10-21 22:51:55 +02:00
parent 1654abb197
commit de82dbfe29
7 changed files with 44 additions and 10 deletions

View File

@@ -0,0 +1,16 @@
import { SnackbarProvider as BaseSnackbarProvider, SnackbarProviderProps } from 'notistack';
const SnackbarProvider = (props: SnackbarProviderProps) => {
return (
<BaseSnackbarProvider
{...props}
anchorOrigin={{
vertical: 'bottom',
horizontal: 'right',
}}
dense
/>
)
};
export default SnackbarProvider;