Skip to content

Commit

Permalink
chore: remove deprecated mui props
Browse files Browse the repository at this point in the history
  • Loading branch information
thenick775 committed Dec 24, 2024
1 parent 63ea9db commit 1783da2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
24 changes: 12 additions & 12 deletions gbajs3/src/components/modals/cheats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,24 +208,24 @@ export const CheatsModal = () => {
<TextField
error={!!errors?.rawCheats}
label="Raw Libretro Cheats"
InputLabelProps={{
shrink: true
}}
multiline
fullWidth
minRows={6}
variant="outlined"
InputProps={{
sx: {
['textarea']: {
whiteSpace: 'pre',
// see: https://github.com/mui/material-ui/issues/41490
// remove/refactor once resolved
overflowX: 'auto !important'
helperText={errors?.rawCheats?.message}
slotProps={{
input: {
sx: {
['textarea']: {
whiteSpace: 'pre',
// see: https://github.com/mui/material-ui/issues/41490
// remove/refactor once resolved
overflowX: 'auto !important'
}
}
}
},
inputLabel: { shrink: true }
}}
helperText={errors?.rawCheats?.message}
style={{ display: viewRawCheats ? 'block' : 'none' }}
{...register('rawCheats')}
/>
Expand Down
4 changes: 1 addition & 3 deletions gbajs3/src/components/modals/save-states.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,10 @@ export const SaveStatesModal = () => {
<TextField
label="Current Save State Slot"
type="number"
InputLabelProps={{
shrink: true
}}
size="small"
error={!!errors?.saveStateSlot}
helperText={errors?.saveStateSlot?.message}
slotProps={{ inputLabel: { shrink: true } }}
{...register('saveStateSlot', {
required: { value: true, message: 'Slot is required' },
min: { value: 0, message: 'Slot must be >= 0' },
Expand Down

0 comments on commit 1783da2

Please sign in to comment.