mirror of
https://github.com/gnmyt/LicenseAPI.git
synced 2026-01-11 10:41:46 +00:00
Fix name in KeyCreationDialog.jsx
This commit is contained in:
@ -27,7 +27,7 @@ export const KeyCreationDialog = ({open, onClose, fetchKeys, setCreatedKey}) =>
|
|||||||
setName(event.target.value);
|
setName(event.target.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
const updateDescription = async (event) => {
|
const updateRole = async (event) => {
|
||||||
setCreationError("");
|
setCreationError("");
|
||||||
setRole(event.target.value);
|
setRole(event.target.value);
|
||||||
}
|
}
|
||||||
@ -70,7 +70,7 @@ export const KeyCreationDialog = ({open, onClose, fetchKeys, setCreatedKey}) =>
|
|||||||
|
|
||||||
<FormControl fullWidth sx={{my: 1}}>
|
<FormControl fullWidth sx={{my: 1}}>
|
||||||
<InputLabel id="role-select-label">Role</InputLabel>
|
<InputLabel id="role-select-label">Role</InputLabel>
|
||||||
<Select labelId="role-select-label" value={role} onChange={updateDescription}
|
<Select labelId="role-select-label" value={role} onChange={updateRole}
|
||||||
input={<OutlinedInput label="Role"/>}>
|
input={<OutlinedInput label="Role"/>}>
|
||||||
<MenuItem value={0}>Viewer</MenuItem>
|
<MenuItem value={0}>Viewer</MenuItem>
|
||||||
<MenuItem value={1}>Manager</MenuItem>
|
<MenuItem value={1}>Manager</MenuItem>
|
||||||
|
|||||||
Reference in New Issue
Block a user