Skip to content

Commit 663a8a8

Browse files
committed
Temporary enable max deviation
1 parent 89c7252 commit 663a8a8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/components/cards/dialogs/allowedSps/AllowedSps.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,19 +222,20 @@ export const AllowedSPs: React.FC<ComponentProps> = ({
222222
<Spinner />
223223
</div>
224224
) : null}
225-
<FormControl fullWidth>
225+
<FormControl fullWidth>
226226
<InputLabel>Max Deviation</InputLabel>
227227
<OutlinedInput
228228
id="outlined-controlled"
229+
type="number"
229230
endAdornment={<InputAdornment position="end">%</InputAdornment>}
230-
disabled={true} // make it dynamically in the future
231+
disabled={false} // make it dynamically in the future
231232
label="Max Deviation"
232233
value={maxDeviationInPercentage ?? ''}
233234
onChange={(event: React.ChangeEvent<HTMLInputElement>) => {
234-
setMaxDeviationInPercentage(event.target.value)
235+
setMaxDeviationInPercentage(event.target.value)
235236
}}
236237
/>
237-
</FormControl>
238+
</FormControl>
238239
<div className="flex flex-col space-y-4 my-8">
239240
<div>SP count: {data.length}</div>
240241
{data.map((item, index) => (

0 commit comments

Comments
 (0)