@umituz/react-native-settings 4.21.18 → 4.21.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/domains/about/presentation/components/AboutContent.tsx +3 -4
- package/src/domains/about/presentation/components/AboutHeader.tsx +7 -14
- package/src/domains/about/presentation/components/AboutSection.tsx +2 -2
- package/src/domains/about/presentation/components/AboutSettingItem.tsx +16 -16
- package/src/domains/appearance/presentation/components/AppearanceSection.tsx +2 -2
- package/src/domains/appearance/presentation/screens/AppearanceScreen.tsx +3 -4
- package/src/domains/faqs/presentation/components/FAQEmptyState.tsx +2 -2
- package/src/domains/gamification/components/AchievementCard.tsx +26 -19
- package/src/domains/gamification/components/AchievementItem.tsx +27 -25
- package/src/domains/gamification/components/AchievementToast.tsx +16 -12
- package/src/domains/gamification/components/GamificationScreen/AchievementsList.tsx +6 -5
- package/src/domains/gamification/components/GamificationScreen/Header.tsx +4 -3
- package/src/domains/gamification/components/GamificationScreen/StatsGrid.tsx +4 -3
- package/src/domains/gamification/components/GamificationScreen/index.tsx +38 -28
- package/src/domains/gamification/components/LevelProgress.tsx +25 -18
- package/src/domains/gamification/components/PointsBadge.tsx +13 -9
- package/src/domains/gamification/components/StatsCard.tsx +20 -14
- package/src/domains/gamification/components/StreakDisplay.tsx +28 -22
- package/src/domains/legal/presentation/components/LegalSection.tsx +2 -2
- package/src/domains/notifications/presentation/components/NotificationsSection.tsx +2 -4
- package/src/domains/notifications/presentation/screens/NotificationSettingsScreen.tsx +3 -4
- package/src/domains/rating/presentation/components/StarRating.tsx +2 -2
- package/src/domains/video-tutorials/presentation/components/VideoTutorialCard.tsx +35 -127
- package/src/domains/video-tutorials/presentation/screens/VideoTutorialsScreen.tsx +88 -153
- package/src/presentation/components/SettingsItemCard.tsx +3 -22
- package/src/presentation/navigation/SettingsStackNavigator.tsx +112 -100
- package/src/presentation/screens/SettingsScreen.tsx +6 -2
- package/src/presentation/screens/components/GamificationSettingsItem.tsx +48 -0
- package/src/presentation/screens/components/SettingsContent.tsx +17 -41
- package/src/presentation/screens/components/SettingsHeader.tsx +2 -3
- package/src/presentation/screens/components/SubscriptionSettingsItem.tsx +30 -0
- package/src/presentation/screens/components/WalletSettingsItem.tsx +28 -0
- package/src/presentation/screens/components/sections/FeatureSettingsSection.tsx +2 -2
- package/src/presentation/screens/components/sections/ProfileSectionLoader.tsx +2 -2
- package/src/presentation/screens/components/sections/SupportSettingsSection.tsx +2 -2
- package/src/presentation/screens/hooks/useFeatureDetection.ts +2 -0
- package/src/presentation/screens/types/SettingsConfig.ts +7 -0
- package/src/presentation/screens/types/UserFeatureConfig.ts +21 -0
- package/src/presentation/screens/types/index.ts +2 -0
- package/src/presentation/screens/utils/normalizeConfig.ts +6 -0
|
@@ -17,6 +17,7 @@ import type {
|
|
|
17
17
|
FAQConfig,
|
|
18
18
|
SubscriptionConfig,
|
|
19
19
|
WalletConfig,
|
|
20
|
+
GamificationItemConfig,
|
|
20
21
|
SettingsConfig,
|
|
21
22
|
} from "../types";
|
|
22
23
|
|
|
@@ -69,6 +70,10 @@ export interface NormalizedConfig {
|
|
|
69
70
|
enabled: boolean;
|
|
70
71
|
config?: WalletConfig;
|
|
71
72
|
};
|
|
73
|
+
gamification: {
|
|
74
|
+
enabled: boolean;
|
|
75
|
+
config?: GamificationItemConfig;
|
|
76
|
+
};
|
|
72
77
|
}
|
|
73
78
|
|
|
74
79
|
/**
|
|
@@ -115,5 +120,6 @@ export function normalizeSettingsConfig(
|
|
|
115
120
|
faqs: normalizeConfigValue(config?.faqs, false),
|
|
116
121
|
subscription: normalizeConfigValue(config?.subscription, false),
|
|
117
122
|
wallet: normalizeConfigValue(config?.wallet, false),
|
|
123
|
+
gamification: normalizeConfigValue(config?.gamification, false),
|
|
118
124
|
};
|
|
119
125
|
}
|