1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00
vault-frontend/src/layouts/LabLayout/index.tsx
muerwre 080d59858c
Отрефакторил бэк, исправил ошибки (#138)
* fixed paths to match refactored backend

* fixed some paths according to new backend

* fixed auth urls for new endpoints

* fixed urls

* fixed error handling

* fixes

* fixed error handling on user form

* fixed error handling on oauth

* using fallback: true on node pages

* type button for comment attach buttons

* fixed return types of social delete

* changed the way we upload user avatars
2022-09-16 14:53:52 +07:00

44 lines
1.2 KiB
TypeScript

import React, { FC } from 'react';
import { Group } from '~/components/containers/Group';
import { Sticky } from '~/components/containers/Sticky';
import { LabHead } from '~/components/lab/LabHead';
import { LabGrid } from '~/containers/lab/LabGrid';
import { LabStats } from '~/containers/lab/LabStats';
import { Container } from '~/containers/main/Container';
import { SidebarRouter } from '~/containers/main/SidebarRouter';
import { useLabContext } from '~/utils/context/LabContextProvider';
import styles from './styles.module.scss';
interface IProps {}
const LabLayout: FC<IProps> = () => {
const { isLoading } = useLabContext();
return (
<Container>
<div className={styles.container}>
<div className={styles.wrap}>
<Group className={styles.content}>
<div className={styles.head}>
<LabHead isLoading={isLoading} />
</div>
<LabGrid />
</Group>
<div className={styles.panel}>
<Sticky>
<LabStats />
</Sticky>
</div>
</div>
</div>
<SidebarRouter prefix="/lab" isLab />
</Container>
);
};
export { LabLayout };