Skip to content

Commit 5410a8a

Browse files
committed
refactor: History Type
1 parent b14c24f commit 5410a8a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

frontend/src/app/pages/DashBoardPage/actions/widgetAction.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818
import { urlSearchTransfer } from 'app/pages/MainPage/pages/VizPage/utils';
1919
import { ChartMouseEventParams } from 'app/types/Chart';
20-
import { History } from 'history';
20+
import type { History } from 'history';
2121
import i18next from 'i18next';
2222
import { RootState } from 'types';
2323
import { jumpTypes } from '../constants';
@@ -110,7 +110,7 @@ export const widgetClickJumpAction =
110110
renderMode: VizRenderMode,
111111
widget: Widget,
112112
params: ChartMouseEventParams,
113-
history: History,
113+
history: History<any>,
114114
) =>
115115
(dispatch, getState) => {
116116
const state = getState() as RootState;
@@ -251,7 +251,7 @@ export const widgetChartClickAction =
251251
renderMode: VizRenderMode,
252252
widget: Widget,
253253
params: ChartMouseEventParams,
254-
history: History,
254+
history: History<any>,
255255
) =>
256256
dispatch => {
257257
//is tableChart

frontend/src/app/pages/DashBoardPage/components/ActionProvider/WidgetActionProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const WidgetActionProvider: FC<{
7777
renderMode: VizRenderMode;
7878
}> = memo(({ boardEditing, boardId, orgId, renderMode, children }) => {
7979
const dispatch = useDispatch();
80-
const history = useHistory();
80+
const history = useHistory<any>();
8181
const methods = useMemo(() => {
8282
const contextValue: WidgetActionContextProps = {
8383
onEditLayerToTop: () => {

0 commit comments

Comments
 (0)