aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/IpcEvents.ts2
-rw-r--r--src/utils/misc.tsx2
-rw-r--r--src/utils/modal.tsx2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/IpcEvents.ts b/src/utils/IpcEvents.ts
index b96abdc..6b906f1 100644
--- a/src/utils/IpcEvents.ts
+++ b/src/utils/IpcEvents.ts
@@ -7,7 +7,7 @@ function strEnum<T extends Record<string, string>>(obj: T): T {
for (const key in obj) {
o[key] = obj[key] as any;
o[obj[key]] = key as any;
- };
+ }
return Object.freeze(o);
}
diff --git a/src/utils/misc.tsx b/src/utils/misc.tsx
index 989a54a..2ebf91c 100644
--- a/src/utils/misc.tsx
+++ b/src/utils/misc.tsx
@@ -56,7 +56,7 @@ export function useAwaiter<T>(factory: () => Promise<T>, fallbackValue: T | null
}, []);
return [state.value, state.error, state.pending];
-};
+}
/**
* A lazy component. The factory method is called on first render. For example useful
diff --git a/src/utils/modal.tsx b/src/utils/modal.tsx
index f59c26c..b8e647c 100644
--- a/src/utils/modal.tsx
+++ b/src/utils/modal.tsx
@@ -25,7 +25,7 @@ export function openModal(Component: React.ComponentType, modalProps: Record<str
), { modalKey: key });
return key;
-};
+}
/**
* Close a modal by key. The id you need for this is returned by openModal.