Remove useless menu

This commit is contained in:
Adrien Vannson 2023-01-17 17:02:49 +01:00
parent 5936213e00
commit cca5b35af5
No known key found for this signature in database
GPG Key ID: FE2E66FD978C1A55

View File

@ -92,15 +92,8 @@ function handleRoomSelected(id)
export default function App() {
const [selectedRoom, setSelectedRoom] = React.useState(null);
function selectAmphiB() {
setSelectedRoom("salle-M-GN1-3-av");
}
return <>
<TopBar />
<Button onClick={selectAmphiB}>Amphi B</Button>
<Button>Salle : {selectedRoom}</Button>
<div style={{ flexGrow: '1', display: 'flex', flexDirection: 'line', flexWrap: 'nowrap' }}>
<Map callbackRoomSelected={handleRoomSelected} selectedRoom={selectedRoom}/>
<RoomResearch callbackRoomSelected={setSelectedRoom}/>