Skip to content

Commit a76cffe

Browse files
committed
Use a check box to mark guilds active/inactive to be consistent with the existing team edit functionality.
1 parent 141bd25 commit a76cffe

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

web-ui/src/components/guild-results/EditGuildModal.jsx

+13-12
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import {
1111
FormControlLabel,
1212
Modal,
1313
Switch,
14-
TextField
14+
TextField,
15+
Checkbox,
1516
} from '@mui/material';
1617
import Autocomplete from '@mui/material/Autocomplete';
1718
import './EditGuildModal.css';
@@ -166,18 +167,18 @@ const EditGuildModal = ({ guild = {}, open, onSave, onClose, headerText }) => {
166167
value={editedGuild.name ? editedGuild.name : ''}
167168
onChange={e => setGuild({ ...editedGuild, name: e.target.value })}
168169
/>
169-
{guild.id && <FormControlLabel
170-
control={
171-
<Switch
172-
checked={editedGuild.active}
173-
onChange={event => {
174-
const { checked } = event.target;
175-
setGuild({ ...editedGuild, active: checked });
176-
}}
177-
/>
178-
}
170+
{guild.id && (<><Checkbox
171+
id="guild-active-input"
179172
label="Active"
180-
/>}
173+
variant="outlined"
174+
className="halfWidth"
175+
checked={editedGuild.active}
176+
onChange={event => {
177+
const { checked } = event.target;
178+
setGuild({ ...editedGuild, active: checked });
179+
}}
180+
/> Active
181+
</>)}
181182
</div>
182183
<div>
183184
<FormControlLabel

0 commit comments

Comments
 (0)