mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
fixed boris superpowers page
This commit is contained in:
parent
6651cfa536
commit
f185914c7c
3 changed files with 56 additions and 29 deletions
36
src/containers/boris/BorisSuperpowers/index.tsx
Normal file
36
src/containers/boris/BorisSuperpowers/index.tsx
Normal file
|
@ -0,0 +1,36 @@
|
|||
import { FC } from 'react';
|
||||
|
||||
import { useRouter } from 'next/router';
|
||||
|
||||
import { Group } from '~/components/containers/Group';
|
||||
import { Button } from '~/components/input/Button';
|
||||
import { Dialog } from '~/constants/modal';
|
||||
import { URLS } from '~/constants/urls';
|
||||
import { useShowModal } from '~/hooks/modal/useShowModal';
|
||||
|
||||
import styles from './styles.module.scss';
|
||||
|
||||
interface BorisSuperpowersProps { }
|
||||
|
||||
|
||||
|
||||
const BorisSuperpowers: FC<BorisSuperpowersProps> = () => {
|
||||
const openProfileSidebar = useShowModal(Dialog.ProfileSidebar);
|
||||
const { push } = useRouter();
|
||||
|
||||
return (
|
||||
<Group>
|
||||
<h2>Штучи, находящиеся в разработке</h2>
|
||||
|
||||
<div className={styles.grid}>
|
||||
<Button size="mini" onClick={() => openProfileSidebar({})}>Открыть</Button>
|
||||
<div className={styles.label}>Профиль в сайдбаре</div>
|
||||
|
||||
<Button size="mini" onClick={() => push(URLS.SETTINGS.BASE)}>Открыть</Button>
|
||||
<div className={styles.label}>Профиль на отдельной странице</div>
|
||||
</div>
|
||||
</Group>
|
||||
);
|
||||
}
|
||||
|
||||
export default BorisSuperpowers;
|
11
src/containers/boris/BorisSuperpowers/styles.module.scss
Normal file
11
src/containers/boris/BorisSuperpowers/styles.module.scss
Normal file
|
@ -0,0 +1,11 @@
|
|||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
grid-row-gap: 10px;
|
||||
}
|
||||
|
||||
.label {
|
||||
margin-left: 10px;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue