mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
made better sidebar logout button
This commit is contained in:
parent
be061c966f
commit
27c87bea0a
8 changed files with 58 additions and 6 deletions
|
@ -14,6 +14,8 @@ import { ProfileStats } from '~/containers/profile/ProfileStats';
|
|||
import { useAuth } from '~/hooks/auth/useAuth';
|
||||
import markdown from '~/styles/common/markdown.module.scss';
|
||||
|
||||
import { ProfileSidebarLogoutButton } from '../ProfileSidebarLogoutButton';
|
||||
|
||||
import styles from './styles.module.scss';
|
||||
|
||||
interface ProfileSidebarMenuProps {
|
||||
|
@ -49,9 +51,7 @@ const ProfileSidebarMenu: VFC<ProfileSidebarMenuProps> = ({ onClose }) => {
|
|||
|
||||
<Group className={styles.buttons} horizontal>
|
||||
<Filler />
|
||||
<MenuButton icon={<Button color="link"><Icon icon="dots-vertical" size={24} /></Button>} position="top-end">
|
||||
<MenuItemWithIcon onClick={onLogout}>Выйти</MenuItemWithIcon>
|
||||
</MenuButton>
|
||||
<ProfileSidebarLogoutButton onLogout={onLogout}/>
|
||||
</Group>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue