mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
added working profile sidebar
This commit is contained in:
parent
c6c7dbe75d
commit
07b4874f69
16 changed files with 202 additions and 84 deletions
|
@ -8,6 +8,7 @@ import { Filler } from '~/components/containers/Filler';
|
|||
import { Grid } from '~/components/containers/Grid';
|
||||
import { Group } from '~/components/containers/Group';
|
||||
import { Button } from '~/components/input/Button';
|
||||
import { useStackContext } from '~/components/sidebar/SidebarStack';
|
||||
import { ProfileSidebarHead } from '~/containers/profile/ProfileSidebarHead';
|
||||
import markdown from '~/styles/common/markdown.module.scss';
|
||||
|
||||
|
@ -17,54 +18,58 @@ interface ProfileSidebarMenuProps {
|
|||
onClose: () => void;
|
||||
}
|
||||
|
||||
const ProfileSidebarMenu: VFC<ProfileSidebarMenuProps> = ({ onClose }) => (
|
||||
<div className={styles.wrap}>
|
||||
<div>
|
||||
<ProfileSidebarHead />
|
||||
const ProfileSidebarMenu: VFC<ProfileSidebarMenuProps> = ({ onClose }) => {
|
||||
const { setActiveTab } = useStackContext();
|
||||
|
||||
return (
|
||||
<div className={styles.wrap}>
|
||||
<div>
|
||||
<ProfileSidebarHead />
|
||||
</div>
|
||||
|
||||
<Filler className={classNames(markdown.wrapper, styles.text)}>
|
||||
<Group>
|
||||
<ul className={styles.menu}>
|
||||
<li onClick={() => setActiveTab(0)}>Настройки</li>
|
||||
<li onClick={() => setActiveTab(1)}>Заметки</li>
|
||||
<li onClick={() => setActiveTab(2)}>Удалённые посты</li>
|
||||
</ul>
|
||||
|
||||
<Grid columns="2fr 1fr">
|
||||
<Card>
|
||||
<h4>1 год 2 месяца</h4>
|
||||
<small>в убежище</small>
|
||||
</Card>
|
||||
|
||||
<Card>
|
||||
<Square>
|
||||
<h4>24 поста</h4>
|
||||
<small>Создано</small>
|
||||
</Square>
|
||||
</Card>
|
||||
</Grid>
|
||||
|
||||
<Grid columns="1fr 2fr">
|
||||
<Card>
|
||||
<Square>
|
||||
<h4>16545 лайка</h4>
|
||||
<small>получено</small>
|
||||
</Square>
|
||||
</Card>
|
||||
|
||||
<Card>
|
||||
<h4>123123 комментария</h4>
|
||||
<small>под постами</small>
|
||||
</Card>
|
||||
</Grid>
|
||||
</Group>
|
||||
</Filler>
|
||||
|
||||
<Button round onClick={onClose} color="secondary">
|
||||
Закрыть
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<Filler className={classNames(markdown.wrapper, styles.text)}>
|
||||
<Group>
|
||||
<ul className={styles.menu}>
|
||||
<li>Настройки</li>
|
||||
<li>Заметки</li>
|
||||
<li>Удалённые посты</li>
|
||||
</ul>
|
||||
|
||||
<Grid columns="2fr 1fr">
|
||||
<Card>
|
||||
<h4>1 год 2 месяца</h4>
|
||||
<small>в убежище</small>
|
||||
</Card>
|
||||
|
||||
<Card>
|
||||
<Square>
|
||||
<h4>24 поста</h4>
|
||||
<small>Создано</small>
|
||||
</Square>
|
||||
</Card>
|
||||
</Grid>
|
||||
|
||||
<Grid columns="1fr 2fr">
|
||||
<Card>
|
||||
<Square>
|
||||
<h4>16545 лайка</h4>
|
||||
<small>получено</small>
|
||||
</Square>
|
||||
</Card>
|
||||
|
||||
<Card>
|
||||
<h4>123123 комментария</h4>
|
||||
<small>под постами</small>
|
||||
</Card>
|
||||
</Grid>
|
||||
</Group>
|
||||
</Filler>
|
||||
|
||||
<Button round onClick={onClose} color="secondary">
|
||||
Закрыть
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
);
|
||||
};
|
||||
|
||||
export { ProfileSidebarMenu };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue