frontend/src/components/App.tsx

42 lines
971 B
TypeScript
Raw Normal View History

2020-11-22 18:22:07 +01:00
import React, { useState } from 'react';
2020-08-20 18:14:28 +02:00
import Topbar from './Topbar';
import { Transfer } from './Transfer';
import { Scheduler } from './Scheduler';
2020-08-17 23:56:34 +02:00
import { Rightbar } from './Rightbar';
import styled from 'styled-components';
const Wrapper = styled.div`
display: flex;
height: calc(100vh - 80px);
2020-11-22 18:24:24 +01:00
<<<<<<< HEAD
2020-11-22 18:22:07 +01:00
background-color: #eceef4;
padding-top: 20px;
padding-bottom: 20px;
2020-11-22 18:24:24 +01:00
=======
2020-11-08 18:05:21 +01:00
background-color: #ECEEF4;
2020-11-20 20:39:36 +01:00
padding-top:20px;
padding-bottom:20px;
2020-11-22 17:22:13 +01:00
padding-right:20px;
2020-11-22 18:24:24 +01:00
>>>>>>> b687b3c014cabbedb9233d5f33e42d461a04a047
`;
export const App = () => {
const [isOpenTransfer, setOpenTransfer] = useState(false);
const handleTransfer = () => {
setOpenTransfer(!isOpenTransfer);
};
return (
<>
<Topbar handleTransfer={handleTransfer} />
<Transfer isOpen={isOpenTransfer} handleClose={handleTransfer} />
<Wrapper>
2020-11-20 20:39:36 +01:00
{/* <Admin/> */}
<Scheduler />
<Rightbar />
</Wrapper>
</>
);
};