refactor: simplify dependency array in SettingItemButtonImpl component

- Removed unused dependencies from the effect hook in the SettingItemButtonImpl component for cleaner code and improved readability.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-11-19 00:14:45 +08:00
parent 38d0571460
commit add03d787b
@@ -204,17 +204,7 @@ const SettingItemButtonImpl = (props: {
}
setTab(path)
onChange?.(path)
}, [
disabled,
disabledByConfig,
ensureLogin,
guestLocked,
onChange,
path,
presentActivationModal,
setTab,
why,
])}
}, [disabled, ensureLogin, guestLocked, onChange, path, presentActivationModal, setTab, why])}
>
<SettingsSidebarTitle path={path} className="text-[0.94rem] font-medium" />
</button>