mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
384 B
TypeScript
16 lines
384 B
TypeScript
4 years ago
|
import React from 'react';
|
||
|
import { Redirect, Route, Switch } from 'react-router-dom';
|
||
|
import { LoginView } from './LoginView';
|
||
|
|
||
|
export const EntryRoute = React.memo(() => {
|
||
|
return (
|
||
|
<div>
|
||
|
<Switch>
|
||
|
<Route path="/entry/login" component={LoginView} />
|
||
|
<Redirect to="/entry/login" />
|
||
|
</Switch>
|
||
|
</div>
|
||
|
);
|
||
|
});
|
||
|
EntryRoute.displayName = 'EntryRoute';
|