mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
added profile sidebar just to test if I can
This commit is contained in:
parent
b4edba1beb
commit
d9a1b5cf13
10 changed files with 209 additions and 10 deletions
|
@ -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>
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue