Skip to content

Build your personal knowledge base with Trilium Notes

chore(client/save_indicator): fix some spacing issues

Elian Doran80363cdc7338
diff --git a/apps/client/src/components/note_context.ts b/apps/client/src/components/note_context.ts
index 2ea352581a..afcaaf0918 100644
--- a/apps/client/src/components/note_context.ts
+++ b/apps/client/src/components/note_context.ts
@@ -43,7 +43,7 @@ export interface NoteContextDataMap {
};
saveState: {
state: SaveState;
- }
+ };
}
type ContextDataKey = keyof NoteContextDataMap;
diff --git a/apps/client/src/widgets/react/hooks.tsx b/apps/client/src/widgets/react/hooks.tsx
index 7d1d421faa..7fade29b97 100644
--- a/apps/client/src/widgets/react/hooks.tsx
+++ b/apps/client/src/widgets/react/hooks.tsx
@@ -75,7 +75,7 @@ export function useSpacedUpdate(callback: () => void | Promise<void>, interval =
// Update callback ref when it changes
useEffect(() => {
callbackRef.current = callback;
- }, [callback]);
+ }, [ callback ]);
// Update state callback when it changes.
useEffect(() => {
@@ -85,7 +85,7 @@ export function useSpacedUpdate(callback: () => void | Promise<void>, interval =
// Update interval if it changes
useEffect(() => {
spacedUpdateRef.current?.setUpdateInterval(interval);
- }, [interval]);
+ }, [ interval ]);
return spacedUpdateRef.current;
}