From c1ec6a07f47a656d299b03e959d1c4061811a664 Mon Sep 17 00:00:00 2001 From: Adrien Vannson Date: Tue, 10 Jan 2023 17:25:16 +0100 Subject: [PATCH] Add parameters to map --- src/App.js | 7 ++++++- src/Map.js | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index 5846681..f9359d1 100644 --- a/src/App.js +++ b/src/App.js @@ -81,12 +81,17 @@ function TopBar() { } +function handleRoomSelected(id) +{ + alert('AA') +} + export default function App() { return <>
- +
diff --git a/src/Map.js b/src/Map.js index 50e4239..df3f685 100644 --- a/src/Map.js +++ b/src/Map.js @@ -108,7 +108,7 @@ function layers_list(requestList, cb, selectedRoom) } function Map({callbackRoomSelected, selectedRoom}) -{ +{ // When the user selects a room on the map, call callbackRoomSelected. // The room that is currently selected is selectedRoom. It is null if no room // is selected