aboutsummaryrefslogtreecommitdiff
path: root/src/pages/Route.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/Route.tsx')
-rw-r--r--src/pages/Route.tsx11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/pages/Route.tsx b/src/pages/Route.tsx
new file mode 100644
index 0000000..fdd6f96
--- /dev/null
+++ b/src/pages/Route.tsx
@@ -0,0 +1,11 @@
+import React from 'react';
+import { Route as BaseRoute } from 'react-router-dom';
+
+
+const Route: React.FC<any> = ({ component: Component, ...rest }) => {
+ const render: React.FC<any> = (props) => <Component {...props} />;
+
+ return <BaseRoute render={render} {...rest} />;
+};
+
+export default Route;