mirror of
https://github.com/Discreetly/frontend.git
synced 2026-05-04 03:00:34 -04:00
fixed toast colors transparent after build filters unused css
This commit is contained in:
@@ -51,8 +51,25 @@
|
||||
});
|
||||
setInterval(() => {
|
||||
const toast = alertQueue.dequeue();
|
||||
let bg = '';
|
||||
if (toast) {
|
||||
const bg = `variant-filled-${toast.type}`;
|
||||
switch (toast.type) {
|
||||
case 'error':
|
||||
bg = 'variant-filled-error';
|
||||
break;
|
||||
case 'warning':
|
||||
bg = 'variant-filled-warning';
|
||||
break;
|
||||
case 'success':
|
||||
bg = 'variant-filled-success';
|
||||
break;
|
||||
case 'info':
|
||||
bg = 'variant-filled-info';
|
||||
break;
|
||||
default:
|
||||
bg = 'variant-filled-primary';
|
||||
break;
|
||||
}
|
||||
toastStore.trigger({
|
||||
message: toast.data,
|
||||
background: bg,
|
||||
|
||||
Reference in New Issue
Block a user