1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

added profile sidebar just to test if I can

This commit is contained in:
Fedor Katurov 2020-11-17 17:11:13 +07:00
parent b4edba1beb
commit d9a1b5cf13
10 changed files with 209 additions and 10 deletions

View file

@ -1,6 +1,7 @@
import React, { FC } from 'react';
import { Route, Switch } from 'react-router';
import { TagSidebar } from '~/containers/sidebars/TagSidebar';
import { ProfileSidebar } from '~/containers/sidebars/ProfileSidebar';
interface IProps {
prefix?: string;
@ -9,6 +10,7 @@ interface IProps {
const SidebarRouter: FC<IProps> = ({ prefix = '' }) => (
<Switch>
<Route path={`${prefix}/tag/:tag`} component={TagSidebar} />
<Route path={`${prefix}/~:username`} component={ProfileSidebar} />
</Switch>
);