Skip to content

Commit 834c29a

Browse files
committed
#2137 using formcontrol and formlabel now
1 parent 05b6591 commit 834c29a

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

src/frontend/src/pages/AdminToolsPage/AdminToolsAttendeeDesignReviewModal.tsx

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
22
import {
33
TextField,
44
FormControl,
5-
InputLabel,
5+
FormLabel,
66
Select,
77
MenuItem,
88
SelectChangeEvent,
@@ -64,23 +64,19 @@ const AttendeeDesignReviewModal: React.FC<AttendeeDesignReviewModalProps> = ({ o
6464
showCloseButton={true}
6565
hideFormButtons={true}
6666
>
67-
<TextField
68-
label="Search by team member name"
69-
variant="outlined"
70-
value={searchQuery}
71-
onChange={handleSearchChange}
72-
fullWidth
73-
sx={{ marginBottom: 2 }}
74-
/>
75-
<FormControl fullWidth>
76-
<InputLabel id="team-select-label">Team</InputLabel>
67+
<FormControl fullWidth sx={{ marginBottom: 2 }}>
68+
<FormLabel htmlFor="search-by-name">Search by team member name</FormLabel>
69+
<TextField id="search-by-name" variant="outlined" value={searchQuery} onChange={handleSearchChange} fullWidth />
70+
</FormControl>
71+
<FormControl fullWidth sx={{ marginBottom: 2 }}>
72+
<FormLabel id="team-select-label">Team</FormLabel>
7773
<Select
7874
labelId="team-select-label"
7975
id="team-select"
8076
value={selectedTeam}
81-
label="Team"
8277
onChange={handleTeamChange}
83-
sx={{ marginBottom: 2 }}
78+
displayEmpty
79+
fullWidth
8480
>
8581
{teams.map((team) => (
8682
<MenuItem key={team} value={team}>

0 commit comments

Comments
 (0)