chore: store apiKey in redux store

This commit is contained in:
Sebastian Velez
2023-01-13 14:03:04 -05:00
parent def9fe1243
commit 6dfa40e026
9 changed files with 128 additions and 64 deletions

10
src/types/store.ts Normal file
View File

@@ -0,0 +1,10 @@
import { CurrentUser } from './user';
export interface ApiKeyReducer {
value: string;
}
export interface ReduxSelector {
apiKey: ApiKeyReducer;
currentUser: CurrentUser;
}

View File

@@ -46,3 +46,9 @@ export interface User {
weekday_start: number;
writes_only: boolean;
}
export interface CurrentUser {
error?: unknown;
pending?: boolean;
user?: User;
}