Skip to content

Commit 7435a88

Browse files
committed
Use AnyAction in remaining Action and ActionType locations
1 parent dffdfa1 commit 7435a88

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ui/frontend/BuildMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface BuildMenuProps {
1414
close: () => void;
1515
}
1616

17-
const useDispatchAndClose = (action: () => actions.ThunkAction, close: () => void) => {
17+
const useDispatchAndClose = (action: () => actions.SimpleThunkAction, close: () => void) => {
1818
const dispatch = useAppDispatch();
1919

2020
return useCallback(() => {

ui/frontend/Router.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react';
2+
import { AnyAction } from '@reduxjs/toolkit';
23

34
import { createBrowserHistory as createHistory, Path, Location } from 'history';
45
import { createRouter, PlainOrThunk } from './uss-router';
@@ -64,7 +65,7 @@ const stateToLocation = ({ page, configuration, output }: Substate): Partial<Pat
6465
}
6566
};
6667

67-
const locationToAction = (location: Location): PlainOrThunk<State, actions.Action> | null => {
68+
const locationToAction = (location: Location): PlainOrThunk<State, AnyAction> | null => {
6869
const matchedHelp = helpRoute.match(location.pathname);
6970

7071
if (matchedHelp) {

0 commit comments

Comments
 (0)