feat: custom auth preparations

This commit is contained in:
zomars committed 2023-06-26 20:45:50 -07:00
1 parent 4fe69b5864
commit c2e91b8378
5 files changed
+10 -10

No files matched your search

+4 -8
View File
@@ -69,16 +69,12 @@ export function showToast(
) {
switch (variant) {
case "success":
toast.custom((t) => <SuccessToast message={message} toastVisible={t.visible} />, { duration });
break;
return toast.custom((t) => <SuccessToast message={message} toastVisible={t.visible} />, { duration });
case "error":
toast.custom((t) => <ErrorToast message={message} toastVisible={t.visible} />, { duration });
break;
return toast.custom((t) => <ErrorToast message={message} toastVisible={t.visible} />, { duration });
case "warning":
toast.custom((t) => <WarningToast message={message} toastVisible={t.visible} />, { duration });
break;
return toast.custom((t) => <WarningToast message={message} toastVisible={t.visible} />, { duration });
default:
toast.custom((t) => <DefaultToast message={message} toastVisible={t.visible} />, { duration });
break;
return toast.custom((t) => <DefaultToast message={message} toastVisible={t.visible} />, { duration });
}
}
+1
View File
@@ -6,6 +6,7 @@
"main": "./index.tsx",
"exports": {
".": "./index.tsx",
"./components/toast": "./components/toast/index.tsx",
"./components/icon": "./components/icon/index.ts"
},
"types": "./index.tsx",