Skip to content

Commit 78a0d39

Browse files
committed
Fix problem with withRouter upgrade DefinitelyTyped/DefinitelyTyped#17181
1 parent 54c2f42 commit 78a0d39

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/frontend/src/App.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ class App extends React.Component<AppProps&actionsInterface, AppState> {
1616
}
1717
}
1818

19-
export default withRouter<{}>(map<AppProps>(App));
19+
export default withRouter<AppProps>(map<AppProps>(App));

src/frontend/src/Layout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ class Layout extends React.Component<LayoutProps & actionsInterface, LayoutState
3737
}
3838
}
3939

40-
export default withRouter<{}>(map<LayoutProps>(Layout));
40+
export default withRouter<LayoutProps>(map<LayoutProps>(Layout));

src/frontend/src/partials/Navigation/AddProject.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ class AddProjectWindow extends React.Component<AddProjectWindowProps&actionsInte
5959
}
6060
}
6161

62-
export default withRouter<{closefunc: Function}>(map<AddProjectWindowProps>(AddProjectWindow));
62+
export default withRouter<AddProjectWindowProps>(map<AddProjectWindowProps>(AddProjectWindow));

0 commit comments

Comments
 (0)