mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
better sidepane
This commit is contained in:
parent
1b001db91a
commit
e315b33284
19 changed files with 253 additions and 99 deletions
18
src/containers/main/MainLayout/index.tsx
Normal file
18
src/containers/main/MainLayout/index.tsx
Normal file
|
@ -0,0 +1,18 @@
|
|||
import * as React from 'react';
|
||||
import { SidePane } from "~/components/main/SidePane";
|
||||
import * as styles from './styles.scss';
|
||||
import { useRef } from "react";
|
||||
|
||||
export const MainLayout = ({ children }) => {
|
||||
const container = useRef(null);
|
||||
|
||||
return (
|
||||
<div className={styles.wrapper}>
|
||||
<div className={styles.content} ref={container}>
|
||||
{children}
|
||||
</div>
|
||||
|
||||
<SidePane container={container} />
|
||||
</div>
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue