feat: ui overhaul (#676)

This commit is contained in:
Daniel Lautzenheiser
2023-03-30 13:29:09 -04:00
committed by GitHub
parent 5c86462859
commit 66b81e9228
385 changed files with 20607 additions and 16493 deletions

View File

@ -14,4 +14,5 @@ const store = configureStore({
export { store };
export type RootState = ReturnType<typeof store.getState>;
export type AppStore = typeof store;
export type AppDispatch = typeof store.dispatch;

View File

@ -52,8 +52,11 @@ export const waitUntilAction: Middleware<{}, any, Dispatch> = ({
}
return (next: Dispatch<AnyAction>) =>
(action: AnyAction): null | AnyAction => {
if (action.type === WAIT_UNTIL_ACTION) {
(action: AnyAction | undefined): null | AnyAction => {
if (!action) {
return null;
}
if (action?.type === WAIT_UNTIL_ACTION) {
pending.push(action as WaitAction);
return null;
}