mirror of
https://github.com/Viren070/guides.git
synced 2025-12-01 23:16:16 +01:00
feat(toasts): add 'warning' type to showToast function and default to info
This commit is contained in:
@@ -4,7 +4,7 @@ import styles from "./styles.module.css";
|
||||
// Singleton showToast function
|
||||
export const showToast = (
|
||||
message: string,
|
||||
type: "info" | "error" | "success",
|
||||
type: "info" | "error" | "success" | "warning" = "info",
|
||||
toastId?: string
|
||||
) => {
|
||||
toast(message, {
|
||||
|
||||
Reference in New Issue
Block a user