Skip to content

Commit a4e5aa5

Browse files
authored
refactor: add type to prevent future drift (#2363)
Signed-off-by: Adam Setch <adam.setch@outlook.com>
1 parent 30acefa commit a4e5aa5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/renderer/context/App.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ export const AppProvider = ({ children }: { children: ReactNode }) => {
359359
[auth, settings, unsubscribeNotification],
360360
);
361361

362-
const contextValues = useMemo(
362+
const contextValues: AppContextState = useMemo(
363363
() => ({
364364
auth,
365365
isLoggedIn,
@@ -378,6 +378,7 @@ export const AppProvider = ({ children }: { children: ReactNode }) => {
378378
hasUnreadNotifications,
379379

380380
fetchNotifications: fetchNotificationsWithAccounts,
381+
removeAccountNotifications,
381382
markNotificationsAsRead: markNotificationsAsReadWithAccounts,
382383
markNotificationsAsDone: markNotificationsAsDoneWithAccounts,
383384
unsubscribeNotification: unsubscribeNotificationWithAccounts,
@@ -406,6 +407,7 @@ export const AppProvider = ({ children }: { children: ReactNode }) => {
406407
hasUnreadNotifications,
407408

408409
fetchNotificationsWithAccounts,
410+
removeAccountNotifications,
409411
markNotificationsAsReadWithAccounts,
410412
markNotificationsAsDoneWithAccounts,
411413
unsubscribeNotificationWithAccounts,

0 commit comments

Comments
 (0)