( Page: React.ComponentType
, - title: string, + title: string ) => { return (props: P): JSX.Element => { const history = useHistory(); @@ -12,13 +13,15 @@ export const withModal =
(
() => () => {
history.goBack();
},
- [history],
+ [history]
);
return (
{title}
- {React.createElement(Page, props)}
+