aboutsummaryrefslogtreecommitdiff
path: root/src/pages/Route.tsx
blob: fdd6f96a587d1dfd062fb6bcbeb92810a3e89b0f (plain)
1
2
3
4
5
6
7
8
9
10
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;