mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
fixed appearance for profile sidebar
This commit is contained in:
parent
42c9fed92c
commit
16d12f92da
11 changed files with 96 additions and 10 deletions
23
src/components/profile/ProfileSidebarNotes/index.tsx
Normal file
23
src/components/profile/ProfileSidebarNotes/index.tsx
Normal file
|
@ -0,0 +1,23 @@
|
|||
import React, { VFC } from 'react';
|
||||
|
||||
import { useStackContext } from '~/components/sidebar/SidebarStack';
|
||||
import { SidebarStackCard } from '~/components/sidebar/SidebarStackCard';
|
||||
import { SettingsNotes } from '~/containers/settings/SettingsNotes';
|
||||
|
||||
import styles from './styles.module.scss';
|
||||
|
||||
interface ProfileSidebarNotesProps {}
|
||||
|
||||
const ProfileSidebarNotes: VFC<ProfileSidebarNotesProps> = () => {
|
||||
const { closeAllTabs } = useStackContext();
|
||||
|
||||
return (
|
||||
<SidebarStackCard width={800} headerFeature="back" title="Заметки" onBackPress={closeAllTabs}>
|
||||
<div className={styles.scroller}>
|
||||
<SettingsNotes />
|
||||
</div>
|
||||
</SidebarStackCard>
|
||||
);
|
||||
};
|
||||
|
||||
export { ProfileSidebarNotes };
|
|
@ -0,0 +1,7 @@
|
|||
@import "src/styles/variables";
|
||||
|
||||
.scroller {
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
padding: $gap;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue