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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user