2020-08-17 22:05:13 +02:00
|
|
|
import React, { useState, useContext } from 'react';
|
2020-08-20 18:14:28 +02:00
|
|
|
import Topbar from './Topbar';
|
2020-08-18 18:32:26 +02:00
|
|
|
import { Transfer } from './Transfer';
|
2020-08-17 22:05:13 +02:00
|
|
|
import { Scheduler } from './Scheduler';
|
2020-08-17 23:56:34 +02:00
|
|
|
import { Rightbar } from './Rightbar';
|
2020-08-17 22:05:13 +02:00
|
|
|
import styled from 'styled-components';
|
|
|
|
|
|
|
|
const Wrapper = styled.div`
|
|
|
|
display: flex;
|
2020-08-29 18:52:03 +02:00
|
|
|
height: calc(100vh - 80px);
|
2020-08-17 22:05:13 +02:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const App = () => {
|
|
|
|
const [isOpenTransfer, setOpenTransfer] = useState(false);
|
|
|
|
|
|
|
|
const handleTransfer = () => {
|
|
|
|
setOpenTransfer(!isOpenTransfer);
|
|
|
|
};
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
2020-08-29 18:52:03 +02:00
|
|
|
<Topbar handleTransfer={handleTransfer} />
|
2020-08-17 22:05:13 +02:00
|
|
|
<Transfer isOpen={isOpenTransfer} handleClose={handleTransfer} />
|
|
|
|
<Wrapper>
|
|
|
|
<Scheduler />
|
2020-08-17 23:56:34 +02:00
|
|
|
<Rightbar />
|
2020-08-17 22:05:13 +02:00
|
|
|
</Wrapper>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|