2020-06-03 15:43:11 +02:00
|
|
|
import React, { useState } from "react";
|
|
|
|
import TopBar from "./components/TopBar/";
|
|
|
|
import Transfer from "./components/Transfer/";
|
2020-05-24 18:32:11 +02:00
|
|
|
import "./App.scss";
|
2020-05-24 18:23:13 +02:00
|
|
|
|
|
|
|
function App() {
|
2020-06-03 15:43:11 +02:00
|
|
|
const [isOpen, setOpen] = useState(false);
|
|
|
|
const [text, setText] = useState("");
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="App">
|
|
|
|
<TopBar
|
|
|
|
textChangeHandler={(e) => {
|
|
|
|
setText(e.target.value);
|
|
|
|
}}
|
|
|
|
handleOpen={(e) => {
|
|
|
|
setOpen(!isOpen);
|
|
|
|
}}
|
|
|
|
isOpen={isOpen}
|
|
|
|
/>
|
|
|
|
<Transfer
|
|
|
|
isOpen={isOpen}
|
|
|
|
handleClose={(e) => {
|
|
|
|
setOpen(!isOpen);
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
<h1>{text}</h1>
|
|
|
|
</div>
|
|
|
|
);
|
2020-05-24 18:23:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|