chore(frontend): toasts lose the success kind nobody calls anymore
This commit is contained in:
1 parent
bca0b34636
commit
977dee3cb2
2 files changed
+1
-8
No files matched your search
@@ -49,9 +49,5 @@
|
|||||||
&.error {
|
&.error {
|
||||||
background-color: var(--color-error);
|
background-color: var(--color-error);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.success {
|
|
||||||
background-color: var(--color-green);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
type ToastType = "info" | "error" | "success";
|
type ToastType = "info" | "error";
|
||||||
|
|
||||||
interface Toast {
|
interface Toast {
|
||||||
id: number;
|
id: number;
|
||||||
@@ -39,9 +39,6 @@ function createToasts() {
|
|||||||
return items;
|
return items;
|
||||||
},
|
},
|
||||||
show,
|
show,
|
||||||
success(message: string) {
|
|
||||||
return show(message, "success");
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user