Format the code

This commit is contained in:
Adrien Vannson 2023-02-28 15:12:42 +01:00
parent f0624ecb3e
commit 111a4aa377
No known key found for this signature in database
GPG Key ID: FE2E66FD978C1A55
2 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ function RoomResearch({ callbackRoomSelected }) {
<TextField <TextField
label="Nom, code, occupants, ..." label="Nom, code, occupants, ..."
value={currentRequest} value={currentRequest}
onChange={(event) => {setCurrentRequest(event.target.value)}} onChange={(event) => { setCurrentRequest(event.target.value) }}
variant="outlined" variant="outlined"
fullWidth fullWidth
/> />
@ -138,7 +138,7 @@ export default function App() {
return <> return <>
<TopBar /> <TopBar />
<div style={{ flexGrow: '1', display: 'flex', flexDirection: 'line', flexWrap: 'nowrap' }}> <div style={{ flexGrow: '1', display: 'flex', flexDirection: 'line', flexWrap: 'nowrap' }}>
<Map callbackRoomSelected={setSelectedRoom} selectedRoom={selectedRoom} floorID={currentFloor} callbackChangeFloor={setCurrentFloor}/> <Map callbackRoomSelected={setSelectedRoom} selectedRoom={selectedRoom} floorID={currentFloor} callbackChangeFloor={setCurrentFloor} />
<div> <div>
<ChangeFloor currentFloor={currentFloor} callbackFloorChanged={setCurrentFloor} /> <ChangeFloor currentFloor={currentFloor} callbackFloorChanged={setCurrentFloor} />
<Divider /> <Divider />

View File

@ -5,7 +5,7 @@ import TableRow from '@mui/material/TableRow';
import TableCell from '@mui/material/TableCell'; import TableCell from '@mui/material/TableCell';
import TableBody from '@mui/material/TableBody'; import TableBody from '@mui/material/TableBody';
export default function Rooms({rooms, callbackRoomSelected}) { export default function Rooms({ rooms, callbackRoomSelected }) {
return <TableContainer variant="outlined"> return <TableContainer variant="outlined">
<Table aria-label="demo table"> <Table aria-label="demo table">
<TableHead> <TableHead>