fix: InputProps is deprecated

This commit is contained in:
huzibaca 2024-11-13 00:30:30 +08:00
parent c37f22dc65
commit 176620e3bb
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302

View File

@ -165,17 +165,19 @@ export const BackupConfigViewer = memo(
spellCheck="false"
inputRef={passwordRef}
{...register("password")}
InputProps={{
endAdornment: (
<InputAdornment position="end">
<IconButton
onClick={handleClickShowPassword}
edge="end"
>
{showPassword ? <VisibilityOff /> : <Visibility />}
</IconButton>
</InputAdornment>
),
slotProps={{
input: {
endAdornment: (
<InputAdornment position="end">
<IconButton
onClick={handleClickShowPassword}
edge="end"
>
{showPassword ? <VisibilityOff /> : <Visibility />}
</IconButton>
</InputAdornment>
),
},
}}
/>
</Grid2>