mirror of
https://gitlab.aliens-lyon.fr/encartes/web-interface.git
synced 2026-03-18 15:11:04 +01:00
Format code
This commit is contained in:
parent
51e432a6e8
commit
45181ad049
35
src/App.js
35
src/App.js
@ -102,20 +102,20 @@ function RoomInformation({ roomId }) {
|
|||||||
}, [roomId]);
|
}, [roomId]);
|
||||||
|
|
||||||
return <div style={{ padding: '24px' }}>
|
return <div style={{ padding: '24px' }}>
|
||||||
<Typography component="h2" variant="h5" gutterBottom>
|
<Typography component="h2" variant="h5" gutterBottom>
|
||||||
Salle sélectionnée
|
Salle sélectionnée
|
||||||
</Typography>
|
</Typography>
|
||||||
<ul>
|
<ul>
|
||||||
<li>{
|
<li>{
|
||||||
names.length == 0 ? <em>Aucun nom défini</em> : names.join(', ')
|
names.length == 0 ? <em>Aucun nom défini</em> : names.join(', ')
|
||||||
}</li>
|
}</li>
|
||||||
<li>{
|
<li>{
|
||||||
users.length == 0
|
users.length == 0
|
||||||
? <em>Aucun utilisateur défini</em>
|
? <em>Aucun utilisateur défini</em>
|
||||||
: 'Utilisée par ' + users.join(', ')
|
: 'Utilisée par ' + users.join(', ')
|
||||||
}</li>
|
}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
function TopBar() {
|
function TopBar() {
|
||||||
@ -168,7 +168,12 @@ 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
|
||||||
|
selectedRoom={selectedRoom}
|
||||||
|
callbackRoomSelected={setSelectedRoom}
|
||||||
|
floorID={currentFloor}
|
||||||
|
callbackChangeFloor={setCurrentFloor}
|
||||||
|
/>
|
||||||
<div>
|
<div>
|
||||||
<ChangeFloor currentFloor={currentFloor} callbackFloorChanged={setCurrentFloor} />
|
<ChangeFloor currentFloor={currentFloor} callbackFloorChanged={setCurrentFloor} />
|
||||||
<Divider />
|
<Divider />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user