Skip to content

Commit

Permalink
AppStore type
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Jan 7, 2025
1 parent 0f2944e commit 7c128b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/loot-core/src/client/shared-listeners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
loadPrefs,
pushModal,
resetSync,
signOut,
sync,
uploadBudget,
} from './actions';
Expand Down Expand Up @@ -301,7 +302,7 @@ export function listenForSyncEvent(store: AppStore) {
id: 'login-expired',
button: {
title: 'Go to login',
action: () => actions.signOut(),
action: () => store.dispatch(signOut()),
},
};
break;
Expand Down
1 change: 1 addition & 0 deletions packages/loot-core/src/client/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const store = configureStore({
}),
});

export type AppStore = typeof store;
export type AppDispatch = typeof store.dispatch;
export type RootState = ReturnType<typeof store.getState>;
export type GetRootState = typeof store.getState;
Expand Down

0 comments on commit 7c128b1

Please sign in to comment.