1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 21:06:42 +07:00

added sample settings page

This commit is contained in:
Fedor Katurov 2022-03-25 20:52:39 +07:00
parent 7a6a44cccf
commit 100c4c138a
29 changed files with 527 additions and 113 deletions

View file

@ -0,0 +1,53 @@
import React, { VFC } from 'react';
import classNames from 'classnames';
import Link from 'next/link';
import { Filler } from '~/components/containers/Filler';
import { Group } from '~/components/containers/Group';
import { Button } from '~/components/input/Button';
import { VerticalMenu } from '~/components/menu/VerticalMenu';
import { URLS } from '~/constants/urls';
import { ProfileSidebarHead } from '~/containers/profile/ProfileSidebarHead';
import styles from '~/containers/profile/ProfileSidebarMenu/styles.module.scss';
import { ProfileStats } from '~/containers/profile/ProfileStats';
interface SettingsMenuProps {}
const SettingsMenu: VFC<SettingsMenuProps> = () => (
<Group>
<ProfileSidebarHead />
<br />
<Group>
<VerticalMenu className={styles.menu}>
<Link href={URLS.SETTINGS.BASE} passHref>
<VerticalMenu.Item onClick={console.log}>Настройки</VerticalMenu.Item>
</Link>
<Link href={URLS.SETTINGS.NOTES} passHref>
<VerticalMenu.Item onClick={console.log}>Заметки</VerticalMenu.Item>
</Link>
<Link href={URLS.SETTINGS.TRASH} passHref>
<VerticalMenu.Item onClick={console.log}>Удалённые посты</VerticalMenu.Item>
</Link>
</VerticalMenu>
<br />
<ProfileStats />
<Group horizontal>
<Filler />
<Button color="outline" iconLeft="enter">
Выйти
</Button>
</Group>
</Group>
</Group>
);
export { SettingsMenu };