initial commit
This commit is contained in:
9
src/components/third-party/OpenToast.js
vendored
Normal file
9
src/components/third-party/OpenToast.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { enqueueSnackbar } from 'notistack';
|
||||
|
||||
export const OpenToast = (message, color, time) => {
|
||||
return enqueueSnackbar(message, {
|
||||
variant: color,
|
||||
anchorOrigin: { vertical: 'top', horizontal: 'right' },
|
||||
autoHideDuration: time || 2000
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user