mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
fixed sidebar z-indexes
This commit is contained in:
parent
e28fdd2c05
commit
2e65992a84
3 changed files with 20 additions and 23 deletions
|
@ -7,18 +7,22 @@ interface IProps {
|
|||
path: string;
|
||||
}
|
||||
|
||||
const ProfileSidebarMenu: FC<IProps> = ({ path }) => (
|
||||
<div className={styles.wrap}>
|
||||
<Link className={styles.row} to={`${path}/settings`}>
|
||||
<Icon icon="settings" />
|
||||
<span>Настройки</span>
|
||||
</Link>
|
||||
const ProfileSidebarMenu: FC<IProps> = ({ path }) => {
|
||||
const cleaned = path.replace(/\/$/, '');
|
||||
|
||||
<div className={styles.row}>
|
||||
<Icon icon="messages" />
|
||||
<span>Сообщения</span>
|
||||
return (
|
||||
<div className={styles.wrap}>
|
||||
<Link className={styles.row} to={`${cleaned}/settings`}>
|
||||
<Icon icon="settings" />
|
||||
<span>Настройки</span>
|
||||
</Link>
|
||||
|
||||
<div className={styles.row}>
|
||||
<Icon icon="messages" />
|
||||
<span>Сообщения</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
);
|
||||
};
|
||||
|
||||
export { ProfileSidebarMenu };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue