From 948c2df728fb71a03d260f74fef7cc2037a8fa72 Mon Sep 17 00:00:00 2001 From: Adrien Vannson Date: Tue, 10 Jan 2023 20:10:04 +0100 Subject: [PATCH] Button to select amphi B --- src/App.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index f9359d1..688346a 100644 --- a/src/App.js +++ b/src/App.js @@ -87,11 +87,19 @@ function handleRoomSelected(id) } export default function App() { + const [selectedRoom, setSelectedRoom] = React.useState(null); + + function selectAmphiB() { + setSelectedRoom("salle-M-GN1-3-av"); + } + return <> + +
- +