@umituz/react-native-settings 5.2.42 → 5.2.44
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-settings",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.44",
|
|
4
4
|
"description": "Complete settings hub for React Native apps - consolidated package with settings, localization, about, legal, appearance, feedback, FAQs, rating, and gamification",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -152,9 +152,8 @@ export const useSettingsScreenConfig = (
|
|
|
152
152
|
translations: translations?.account as any,
|
|
153
153
|
}), [user, userProfileData, handleSignIn, handleSignOut, handleDeleteAccount, translations]);
|
|
154
154
|
|
|
155
|
-
// Use centralized FAQ translation
|
|
156
155
|
const translatedFaqData = useMemo(() =>
|
|
157
|
-
translateFAQData(faqData,
|
|
156
|
+
translateFAQData(faqData, appInfo),
|
|
158
157
|
[faqData, appInfo]
|
|
159
158
|
);
|
|
160
159
|
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FAQ Translation Utility
|
|
3
|
-
* Handles translation of FAQ data
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
1
|
import type { FAQData } from "../navigation/types";
|
|
8
2
|
import type { AppInfo } from "../navigation/types";
|
|
9
|
-
import type { TranslationOptions } from "./config-creators/types";
|
|
10
3
|
|
|
11
|
-
/**
|
|
12
|
-
* Utility for handling FAQ data
|
|
13
|
-
* Ensures data is in consistent format
|
|
14
|
-
*/
|
|
15
4
|
export const translateFAQData = (
|
|
16
5
|
faqData: FAQData | undefined,
|
|
17
|
-
_t: (key: string, params?: TranslationOptions) => string,
|
|
18
6
|
_appInfo: AppInfo
|
|
19
7
|
): FAQData | undefined => {
|
|
20
8
|
return faqData;
|