mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-10 01:52:04 +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}
|
|
/>
|
|
)}
|
|
/>
|
|
);
|
|
}
|