mirror of https://github.com/VERT-sh/VERT.git
chore: remove persistent warning/error
This commit is contained in:
parent
ec209f378b
commit
0ab08c84ae
|
@ -32,16 +32,6 @@ function addToast(
|
||||||
exit: 500,
|
exit: 500,
|
||||||
};
|
};
|
||||||
|
|
||||||
// if "disappearing" not set, default error/warning to infinite duration
|
|
||||||
if (disappearing === undefined) {
|
|
||||||
switch (type) {
|
|
||||||
case "error":
|
|
||||||
case "warning":
|
|
||||||
durations.stay = 86400000; // 24h cause why not
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const newToast: Toast = {
|
const newToast: Toast = {
|
||||||
id,
|
id,
|
||||||
type,
|
type,
|
||||||
|
|
Loading…
Reference in New Issue