1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-26 05:16: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" />

View file

@ -22,6 +22,9 @@
justify-content: flex-start;
height: 30px;
opacity: 0.5;
text-decoration: none;
fill: white;
color: white;
&:hover {
background-color: transparentize($wisegreen, 0.5);