mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
cleaned unused deps
This commit is contained in:
parent
35c11fb306
commit
17048f175c
6 changed files with 9 additions and 521 deletions
|
@ -5,7 +5,6 @@ import { NodeLayout } from '~/containers/node/NodeLayout';
|
|||
import { BorisLayout } from '~/containers/node/BorisLayout';
|
||||
import { ErrorNotFound } from '~/containers/pages/ErrorNotFound';
|
||||
import { ProfilePage } from '~/containers/profile/ProfilePage';
|
||||
import { CSSTransition, TransitionGroup } from 'react-transition-group';
|
||||
import { Redirect, Route, Switch, useLocation } from 'react-router';
|
||||
|
||||
interface IProps {}
|
||||
|
@ -14,24 +13,15 @@ const MainRouter: FC<IProps> = () => {
|
|||
const location = useLocation();
|
||||
|
||||
return (
|
||||
<TransitionGroup>
|
||||
{
|
||||
// disabled for scroll restoration
|
||||
// <CSSTransition key={location.key} classNames="fade" timeout={500}>
|
||||
}
|
||||
<Switch location={location}>
|
||||
<Route exact path={URLS.BASE} component={FlowLayout} />
|
||||
<Route path={URLS.NODE_URL(':id')} component={NodeLayout} />
|
||||
<Route path={URLS.BORIS} component={BorisLayout} />
|
||||
<Route path={URLS.ERRORS.NOT_FOUND} component={ErrorNotFound} />
|
||||
<Route path={URLS.PROFILE_PAGE(':username')} component={ProfilePage} />
|
||||
<Switch location={location}>
|
||||
<Route exact path={URLS.BASE} component={FlowLayout} />
|
||||
<Route path={URLS.NODE_URL(':id')} component={NodeLayout} />
|
||||
<Route path={URLS.BORIS} component={BorisLayout} />
|
||||
<Route path={URLS.ERRORS.NOT_FOUND} component={ErrorNotFound} />
|
||||
<Route path={URLS.PROFILE_PAGE(':username')} component={ProfilePage} />
|
||||
|
||||
<Redirect to="/" />
|
||||
</Switch>
|
||||
{
|
||||
// </CSSTransition>
|
||||
}
|
||||
</TransitionGroup>
|
||||
<Redirect to="/" />
|
||||
</Switch>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue