mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-28 21:57:23 +02:00
🐛 Fix linting issues (#1642)
This commit is contained in:
parent
ba84b40776
commit
6b914610d9
18 changed files with 155 additions and 174 deletions
|
@ -13,13 +13,6 @@ type ToasterToast = ToastProps & {
|
|||
action?: ToastActionElement;
|
||||
};
|
||||
|
||||
const actionTypes = {
|
||||
ADD_TOAST: "ADD_TOAST",
|
||||
UPDATE_TOAST: "UPDATE_TOAST",
|
||||
DISMISS_TOAST: "DISMISS_TOAST",
|
||||
REMOVE_TOAST: "REMOVE_TOAST",
|
||||
} as const;
|
||||
|
||||
let count = 0;
|
||||
|
||||
function genId() {
|
||||
|
@ -27,7 +20,12 @@ function genId() {
|
|||
return count.toString();
|
||||
}
|
||||
|
||||
type ActionType = typeof actionTypes;
|
||||
type ActionType = {
|
||||
ADD_TOAST: "ADD_TOAST";
|
||||
UPDATE_TOAST: "UPDATE_TOAST";
|
||||
DISMISS_TOAST: "DISMISS_TOAST";
|
||||
REMOVE_TOAST: "REMOVE_TOAST";
|
||||
};
|
||||
|
||||
type Action =
|
||||
| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue