perf(ui): optimize useFeatureStatus

This commit is contained in:
psychedelicious
2024-04-15 22:25:08 +10:00
parent 7a92afc117
commit a24c9d0f7a
19 changed files with 36 additions and 45 deletions

View File

@ -8,7 +8,7 @@ import ParamHrfStrength from './ParamHrfStrength';
import ParamHrfToggle from './ParamHrfToggle';
export const HrfSettings = memo(() => {
const isHRFFeatureEnabled = useFeatureStatus('hrf').isFeatureEnabled;
const isHRFFeatureEnabled = useFeatureStatus('hrf');
const hrfEnabled = useAppSelector((s) => s.hrf.hrfEnabled);
if (!isHRFFeatureEnabled) {