Skip to content

Commit

Permalink
Fix ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolabosco87 committed Sep 28, 2023
1 parent d608eb5 commit d576fcb
Show file tree
Hide file tree
Showing 2 changed files with 4,612 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/hooks/useCheckIfReminderTime.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
import {
LogicalPosition,
PhysicalPosition,
WebviewWindow,
availableMonitors,
currentMonitor,
primaryMonitor,
} from "@tauri-apps/api/window";
import { PhysicalPosition, WebviewWindow } from "@tauri-apps/api/window";
import { useEffect } from "react";
import { useSnapshot } from "valtio";
import { isReminderTime } from "../lib/utils";
import { state } from "../state/state";
import { useGetPopupPosition } from "./useGetPopupPosition";
import { useSetListenerForNewTrackEvent } from "./useSetListenerForNewTrackEvent";

let reminderInterval: NodeJS.Timer;
let reminderInterval: ReturnType<typeof setInterval>;

export const useCheckIfReminderTime = () => {
const { settings } = useSnapshot(state);
Expand Down Expand Up @@ -57,5 +50,5 @@ export const useCheckIfReminderTime = () => {
clearInterval(reminderInterval);
}
};
}, [settings]);
}, [getPopupPosition, setListenerForNewTrackEvent, settings]);
};
Loading

0 comments on commit d576fcb

Please sign in to comment.