From 176620e3bb619132ae692a2c497a97cf11fb9c52 Mon Sep 17 00:00:00 2001 From: huzibaca Date: Wed, 13 Nov 2024 00:30:30 +0800 Subject: [PATCH] fix: InputProps is deprecated --- .../setting/mods/backup-config-viewer.tsx | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/components/setting/mods/backup-config-viewer.tsx b/src/components/setting/mods/backup-config-viewer.tsx index 21f6498..1ad0b6e 100644 --- a/src/components/setting/mods/backup-config-viewer.tsx +++ b/src/components/setting/mods/backup-config-viewer.tsx @@ -165,17 +165,19 @@ export const BackupConfigViewer = memo( spellCheck="false" inputRef={passwordRef} {...register("password")} - InputProps={{ - endAdornment: ( - - - {showPassword ? : } - - - ), + slotProps={{ + input: { + endAdornment: ( + + + {showPassword ? : } + + + ), + }, }} />