-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
App.js
33 lines (30 loc) · 828 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import React from 'react';
import { useDispatch, useSelector } from 'react-redux';
import Origin from './components/Origin';
import Destination from './components/Destination';
import Button from './components/Button';
import Overlay from './components/Overlay';
//import styles if necessary
//may need to import functions from slices here
const App = (props) => {
const { origin, destination } = useSelector((state) => state.GUI);
return (
<>
<Origin
name={origin.name}
service={origin.service}
></Origin>
<div>
{destination.render && (
<Destination
name={destination.name}
service={destination.service}
></Destination>
)}
</div>
<Button></Button>
<Overlay></Overlay>
</>
);
};
export default App;