style(frontend): apply ultracite 7.12 formatting and lint rules
This commit is contained in:
1 parent
fc4758aa0b
commit
c8e5cff871
109 files changed
+845
-817
No files matched your search
@@ -21,8 +21,9 @@ function createToasts() {
|
||||
type: ToastType = "info",
|
||||
timeout = DEFAULT_TIMEOUT
|
||||
) {
|
||||
const id = nextId++;
|
||||
items = [...items, { id, type, message }];
|
||||
nextId += 1;
|
||||
const id = nextId;
|
||||
items = [...items, { id, message, type }];
|
||||
if (timeout > 0) {
|
||||
setTimeout(() => dismiss(id), timeout);
|
||||
}
|
||||
@@ -30,17 +31,17 @@ function createToasts() {
|
||||
}
|
||||
|
||||
return {
|
||||
dismiss,
|
||||
error(message: string) {
|
||||
return show(message, "error");
|
||||
},
|
||||
get items() {
|
||||
return items;
|
||||
},
|
||||
show,
|
||||
error(message: string) {
|
||||
return show(message, "error");
|
||||
},
|
||||
success(message: string) {
|
||||
return show(message, "success");
|
||||
},
|
||||
dismiss,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user