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

added sidebar headers

This commit is contained in:
Fedor Katurov 2022-01-14 17:02:25 +07:00
parent 01fac15a00
commit 2e75e4f7c0
6 changed files with 61 additions and 7 deletions

View file

@ -4,6 +4,7 @@ import { DialogComponentProps } from '~/types/modal';
import { ProfileSidebarMenu } from '~/containers/profile/ProfileSidebarMenu';
import { SidebarStack } from '~/components/sidebar/SidebarStack';
import { ProfileSidebarSettings } from '~/components/profile/ProfileSidebarSettings';
import { SidebarStackCard } from '~/components/sidebar/SidebarStackCard';
interface ProfileSidebarProps extends DialogComponentProps {}
@ -11,8 +12,13 @@ const ProfileSidebar: VFC<ProfileSidebarProps> = ({ onRequestClose }) => {
return (
<SidebarWrapper onClose={onRequestClose}>
<SidebarStack>
<ProfileSidebarMenu onClose={onRequestClose} />
<ProfileSidebarSettings />
<SidebarStackCard headerFeature="close" title="Профиль">
<ProfileSidebarMenu onClose={onRequestClose} />
</SidebarStackCard>
<SidebarStackCard width={600} headerFeature="back" title="Настройки">
<ProfileSidebarSettings />
</SidebarStackCard>
</SidebarStack>
</SidebarWrapper>
);