toast
This commit is contained in:
11
src/shared/lib/toast.ts
Normal file
11
src/shared/lib/toast.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { toast } from "react-toastify";
|
||||
|
||||
export const snackBar = (text: string) => {
|
||||
toast.dismiss({ containerId: 'snackbar' });
|
||||
toast(text, { containerId: 'snackbar' });
|
||||
};
|
||||
|
||||
export const notiBar = (text: string) => {
|
||||
toast.dismiss({ containerId: 'notibar' });
|
||||
toast(text, { containerId: 'notibar' });
|
||||
};
|
||||
Reference in New Issue
Block a user