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

added settings tab to profile

This commit is contained in:
Fedor Katurov 2020-11-17 18:00:03 +07:00
parent d9a1b5cf13
commit e28fdd2c05
10 changed files with 103 additions and 18 deletions

View file

@ -1,15 +1,18 @@
import React, { FC } from 'react';
import styles from './styles.module.scss';
import { Icon } from '~/components/input/Icon';
import { Link } from 'react-router-dom';
interface IProps {}
interface IProps {
path: string;
}
const ProfileSidebarMenu: FC<IProps> = () => (
const ProfileSidebarMenu: FC<IProps> = ({ path }) => (
<div className={styles.wrap}>
<div className={styles.row}>
<Link className={styles.row} to={`${path}/settings`}>
<Icon icon="settings" />
<span>Настройки</span>
</div>
</Link>
<div className={styles.row}>
<Icon icon="messages" />