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

made transitional Anchor component for next/cra

This commit is contained in:
Fedor Katurov 2022-01-13 14:12:39 +07:00
parent 8bac6bb2f7
commit 7658068caa
12 changed files with 57 additions and 28 deletions

View file

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