diff --git a/src/App.js b/src/App.js index 9a34e1e..81893dd 100644 --- a/src/App.js +++ b/src/App.js @@ -9,6 +9,9 @@ import DialogActions from '@mui/material/DialogActions'; import DialogContent from '@mui/material/DialogContent'; import DialogContentText from '@mui/material/DialogContentText'; import DialogTitle from '@mui/material/DialogTitle'; +import Divider from '@mui/material/Divider'; +import MenuItem from '@mui/material/MenuItem'; +import Select from '@mui/material/Select'; import TextField from '@mui/material/TextField'; import Toolbar from '@mui/material/Toolbar'; import Typography from '@mui/material/Typography'; @@ -20,13 +23,39 @@ import './App.css' import Map from './Map.js'; import Rooms from './Rooms.js'; -function RoomResearch({callbackRoomSelected}) { +function ChangeFloor({ currentFloor, callbackFloorChanged }) { + const handleFloorChanged = (event) => { + callbackFloorChanged(event.target.value); + }; + + return <> +
+ + Changer d'étage + + + +
+ +} + +function RoomResearch({ callbackRoomSelected }) { return <>
Rechercher une salle - + - +
} @@ -86,13 +115,18 @@ function TopBar() { export default function App() { + const [currentFloor, setCurrentFloor] = React.useState(1); const [selectedRoom, setSelectedRoom] = React.useState(null); return <>
- +
+ + + +
} @@ -107,7 +141,7 @@ function ThemedApp() { return ( - + ); }