Add parameters to map

This commit is contained in:
Adrien Vannson 2023-01-10 17:25:16 +01:00
parent a691dc49f9
commit c1ec6a07f4
No known key found for this signature in database
GPG Key ID: FE2E66FD978C1A55
2 changed files with 7 additions and 2 deletions

View File

@ -81,12 +81,17 @@ function TopBar() {
</> </>
} }
function handleRoomSelected(id)
{
alert('AA')
}
export default function App() { 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 /> <Map callbackRoomSelected={handleRoomSelected} selectedRoom={null}/>
<RoomResearch /> <RoomResearch />
</div> </div>
</> </>