mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-01-12 23:02:16 +05:30
21 lines
469 B
TypeScript
21 lines
469 B
TypeScript
|
import React from 'react';
|
||
|
import { Route, RouteProps } from 'react-router-dom';
|
||
|
|
||
|
import AuthFlowRouteContents from './AuthFlowRouteContents';
|
||
|
|
||
|
export default function AuthFlowRoute(props: RouteProps) {
|
||
|
const { component: Component, ...routeProps } = props;
|
||
|
|
||
|
return (
|
||
|
<Route
|
||
|
{...routeProps}
|
||
|
render={routerProps => (
|
||
|
<AuthFlowRouteContents
|
||
|
routerProps={routerProps}
|
||
|
component={Component}
|
||
|
/>
|
||
|
)}
|
||
|
/>
|
||
|
);
|
||
|
}
|