♻️ Remove parent object from “getFeatures” method

This commit is contained in:
Philipp Stracker 2025-01-24 13:10:20 +01:00
parent a3d95f23c2
commit 4883077338
No known key found for this signature in database
2 changed files with 253 additions and 260 deletions

View file

@ -13,7 +13,7 @@ import SettingsCard from '../../../ReusableComponents/SettingsCard';
import { TITLE_BADGE_POSITIVE } from '../../../ReusableComponents/TitleBadge';
import { useMerchantInfo } from '../../../../data/common/hooks';
import { STORE_NAME } from '../../../../data/common';
import Features from '../Components/Overview/Features';
import { getFeatures } from '../Components/Overview/Features';
import { todosData } from '../todo-items';
import {
@ -58,7 +58,7 @@ const OverviewFeatures = () => {
// Get the features data with access to setActiveModal
const featuresData = useMemo(
() => Features.getFeatures( setActiveModal ),
() => getFeatures( setActiveModal ),
[ setActiveModal ]
);