fix: InputProps is deprecated

This commit is contained in:
huzibaca 2024-11-13 00:30:30 +08:00
parent f46ee2a0a3
commit 7f34073da6

View File

@ -165,7 +165,8 @@ export const BackupConfigViewer = memo(
spellCheck="false" spellCheck="false"
inputRef={passwordRef} inputRef={passwordRef}
{...register("password")} {...register("password")}
InputProps={{ slotProps={{
input: {
endAdornment: ( endAdornment: (
<InputAdornment position="end"> <InputAdornment position="end">
<IconButton <IconButton
@ -176,6 +177,7 @@ export const BackupConfigViewer = memo(
</IconButton> </IconButton>
</InputAdornment> </InputAdornment>
), ),
},
}} }}
/> />
</Grid2> </Grid2>