mirror of
https://git.meshkee.com/cssd/cssd-front.git
synced 2026-10-13 12:13:16 +03:30
fix
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import "izitoast/dist/css/iziToast.min.css";
|
||||
import iZtoast from "izitoast";
|
||||
|
||||
const toast = {
|
||||
error: (message, title = "Error") => {
|
||||
return iZtoast.error({
|
||||
title: title,
|
||||
message: message,
|
||||
position: "bottomCenter"
|
||||
});
|
||||
},
|
||||
success: (message, title = "Success") => {
|
||||
return iZtoast.success({
|
||||
title: title,
|
||||
message: message,
|
||||
position: "bottomCenter"
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
export default toast;
|
||||
Reference in New Issue
Block a user