mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-28 14:16:41 +07:00
added settings tab to profile
This commit is contained in:
parent
d9a1b5cf13
commit
e28fdd2c05
10 changed files with 103 additions and 18 deletions
22
src/components/profile/ProfileSidebarSettings/index.tsx
Normal file
22
src/components/profile/ProfileSidebarSettings/index.tsx
Normal file
|
@ -0,0 +1,22 @@
|
|||
import React, { FC } from 'react';
|
||||
import { ProfileSettings } from '~/components/profile/ProfileSettings';
|
||||
import styles from './styles.module.scss';
|
||||
import { Filler } from '~/components/containers/Filler';
|
||||
import { Button } from '~/components/input/Button';
|
||||
|
||||
interface IProps {}
|
||||
|
||||
const ProfileSidebarSettings: FC<IProps> = () => (
|
||||
<div className={styles.wrap}>
|
||||
<div className={styles.scroller}>
|
||||
<ProfileSettings />
|
||||
</div>
|
||||
<div className={styles.buttons}>
|
||||
<Filler />
|
||||
<Button color="outline">Отмена</Button>
|
||||
<Button>Сохранить</Button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
export { ProfileSidebarSettings };
|
|
@ -0,0 +1,24 @@
|
|||
.wrap {
|
||||
@include sidebar_content(600px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
z-index: 4;
|
||||
}
|
||||
|
||||
.scroller {
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
padding: $gap;
|
||||
}
|
||||
|
||||
.buttons {
|
||||
width: 100%;
|
||||
padding: $gap;
|
||||
box-shadow: $sidebar_border 0 -1px;
|
||||
box-sizing: border-box;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto auto;
|
||||
grid-column-gap: $gap;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue