restructured components folders and layout (#1886)

This commit is contained in:
t1enne
2022-04-28 18:54:33 +02:00
committed by GitHub
parent 91b0db9c2e
commit b90eadcb4e
12 changed files with 109 additions and 50 deletions

View File

@@ -0,0 +1,19 @@
import Sider from 'antd/lib/layout/Sider';
import { useRecoilValue } from 'recoil';
import { chatCurrentlyVisible } from '../../stores/ClientConfigStore';
export default function Sidebar() {
let chatOpen = useRecoilValue(chatCurrentlyVisible);
return (
<Sider
collapsed={!chatOpen}
width={300}
style={{
position: 'fixed',
right: 0,
top: 0,
bottom: 0,
}}
/>
);
}

View File

@@ -0,0 +1 @@
export { default } from './Sidebar';