mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
added sample settings page
This commit is contained in:
parent
7a6a44cccf
commit
100c4c138a
29 changed files with 527 additions and 113 deletions
53
src/components/settings/SettingsMenu/index.tsx
Normal file
53
src/components/settings/SettingsMenu/index.tsx
Normal 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 };
|
Loading…
Add table
Add a link
Reference in a new issue