main
Last change
on this file since 0c6b92a was 0c6b92a, checked in by stefan toskovski <stefantoska84@…>, 5 weeks ago |
Pred finalna verzija
|
-
Property mode
set to
100644
|
File size:
852 bytes
|
Line | |
---|
1 | import styles from "../EntranceModal/EntranceModal.module.css";
|
---|
2 | import React from "react";
|
---|
3 |
|
---|
4 | export default function ModalSelectRoom({shapeInfo,availableRooms,updateModalData}){
|
---|
5 | return (
|
---|
6 | <div className={styles.formGroup}>
|
---|
7 | <label htmlFor="connectedRoom">Select room associated with entrance:</label>
|
---|
8 | <select
|
---|
9 | id="connectedRoom"
|
---|
10 | name="connectedRoom"
|
---|
11 | value={shapeInfo.connectedRoom}
|
---|
12 | onChange={updateModalData}
|
---|
13 | required
|
---|
14 | >
|
---|
15 | <option value="">Select Room</option>
|
---|
16 | {availableRooms.map((room, index) => (
|
---|
17 | <option key={index} value={room.info.name}>
|
---|
18 | {room.info.name}
|
---|
19 | </option>
|
---|
20 | ))}
|
---|
21 | </select>
|
---|
22 | </div>
|
---|
23 | )
|
---|
24 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.