@oxyhq/services 6.9.4 → 6.9.6
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/lib/commonjs/ui/client.js +0 -7
- package/lib/commonjs/ui/client.js.map +1 -1
- package/lib/commonjs/ui/components/BottomSheet.js +5 -3
- package/lib/commonjs/ui/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/ui/components/FontLoader.js +1 -1
- package/lib/commonjs/ui/components/FontLoader.js.map +1 -1
- package/lib/commonjs/ui/components/Header.js.map +1 -1
- package/lib/commonjs/ui/components/HelperText.js +1 -1
- package/lib/commonjs/ui/components/HelperText.js.map +1 -1
- package/lib/commonjs/ui/components/Icon.js +6 -2
- package/lib/commonjs/ui/components/Icon.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +9 -1
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/QuickActions.js.map +1 -1
- package/lib/commonjs/ui/components/SignInModal.js +5 -4
- package/lib/commonjs/ui/components/SignInModal.js.map +1 -1
- package/lib/commonjs/ui/components/TouchableRipple/Pressable.js.map +1 -1
- package/lib/commonjs/ui/components/feedback/FormInput.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js.map +1 -1
- package/lib/commonjs/ui/components/icon/OxyIcon.js.map +1 -1
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +1 -1
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +26 -20
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js +9 -5
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js +19 -13
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js +9 -5
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js +14 -10
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/commonjs/ui/components/types.js +4 -0
- package/lib/commonjs/ui/hooks/useAssets.js +4 -4
- package/lib/commonjs/ui/hooks/useAssets.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAsyncAction.js +2 -2
- package/lib/commonjs/ui/hooks/useAsyncAction.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFollow.js.map +1 -1
- package/lib/commonjs/ui/hooks/useProfileEditing.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSettingToggle.js +2 -2
- package/lib/commonjs/ui/hooks/useSettingToggle.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +3 -3
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +66 -60
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +2 -2
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +139 -79
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +2 -2
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js +22 -17
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/OxyAuthScreen.js +2 -2
- package/lib/commonjs/ui/screens/OxyAuthScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +6 -2
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +39 -29
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserLinksScreen.js +11 -3
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
- package/lib/commonjs/ui/stores/followStore.js +2 -2
- package/lib/commonjs/ui/stores/followStore.js.map +1 -1
- package/lib/commonjs/ui/utils/errorHandlers.js +2 -2
- package/lib/commonjs/ui/utils/errorHandlers.js.map +1 -1
- package/lib/commonjs/ui/utils/fileManagement.js +8 -3
- package/lib/commonjs/ui/utils/fileManagement.js.map +1 -1
- package/lib/commonjs/ui/utils/sessionHelpers.js +3 -2
- package/lib/commonjs/ui/utils/sessionHelpers.js.map +1 -1
- package/lib/commonjs/ui/utils/storageHelpers.js +1 -1
- package/lib/commonjs/ui/utils/storageHelpers.js.map +1 -1
- package/lib/commonjs/utils/hookUtils.js +4 -0
- package/lib/commonjs/utils/hookUtils.js.map +1 -1
- package/lib/module/ui/client.js +0 -1
- package/lib/module/ui/client.js.map +1 -1
- package/lib/module/ui/components/BottomSheet.js +5 -3
- package/lib/module/ui/components/BottomSheet.js.map +1 -1
- package/lib/module/ui/components/FontLoader.js +1 -1
- package/lib/module/ui/components/FontLoader.js.map +1 -1
- package/lib/module/ui/components/Header.js.map +1 -1
- package/lib/module/ui/components/HelperText.js +1 -1
- package/lib/module/ui/components/HelperText.js.map +1 -1
- package/lib/module/ui/components/Icon.js +6 -2
- package/lib/module/ui/components/Icon.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +9 -1
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/QuickActions.js.map +1 -1
- package/lib/module/ui/components/SignInModal.js +5 -4
- package/lib/module/ui/components/SignInModal.js.map +1 -1
- package/lib/module/ui/components/TouchableRipple/Pressable.js.map +1 -1
- package/lib/module/ui/components/feedback/FormInput.js.map +1 -1
- package/lib/module/ui/components/fileManagement/AnimatedButton.js.map +1 -1
- package/lib/module/ui/components/icon/OxyIcon.js.map +1 -1
- package/lib/module/ui/components/modals/DeleteAccountModal.js +1 -1
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentDetailsStep.js +26 -20
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentMethodStep.js +9 -5
- package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentReviewStep.js +19 -13
- package/lib/module/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentSuccessStep.js +9 -5
- package/lib/module/ui/components/payment/PaymentSuccessStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentSummaryStep.js +14 -10
- package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/module/ui/components/types.js +2 -0
- package/lib/module/ui/hooks/useAssets.js +4 -4
- package/lib/module/ui/hooks/useAssets.js.map +1 -1
- package/lib/module/ui/hooks/useAsyncAction.js +2 -2
- package/lib/module/ui/hooks/useAsyncAction.js.map +1 -1
- package/lib/module/ui/hooks/useFollow.js.map +1 -1
- package/lib/module/ui/hooks/useProfileEditing.js.map +1 -1
- package/lib/module/ui/hooks/useSettingToggle.js +2 -2
- package/lib/module/ui/hooks/useSettingToggle.js.map +1 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +3 -3
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +66 -60
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +2 -2
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +139 -79
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +2 -2
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js +22 -17
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/module/ui/screens/OxyAuthScreen.js +2 -2
- package/lib/module/ui/screens/OxyAuthScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +6 -2
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/SessionManagementScreen.js +39 -29
- package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/UserLinksScreen.js +11 -3
- package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +1 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js +1 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
- package/lib/module/ui/stores/followStore.js +2 -2
- package/lib/module/ui/stores/followStore.js.map +1 -1
- package/lib/module/ui/utils/errorHandlers.js +2 -2
- package/lib/module/ui/utils/errorHandlers.js.map +1 -1
- package/lib/module/ui/utils/fileManagement.js +8 -3
- package/lib/module/ui/utils/fileManagement.js.map +1 -1
- package/lib/module/ui/utils/sessionHelpers.js +3 -2
- package/lib/module/ui/utils/sessionHelpers.js.map +1 -1
- package/lib/module/ui/utils/storageHelpers.js +1 -1
- package/lib/module/ui/utils/storageHelpers.js.map +1 -1
- package/lib/module/utils/hookUtils.js +4 -0
- package/lib/module/utils/hookUtils.js.map +1 -1
- package/lib/typescript/commonjs/ui/client.d.ts +0 -1
- package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/Icon.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SignInModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/types.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/TouchableRipple/Pressable.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentMethodStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentReviewStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/types.d.ts +18 -17
- package/lib/typescript/commonjs/ui/components/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SessionManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/types/navigation.d.ts +2 -0
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts +1 -1
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/sessionHelpers.d.ts +2 -1
- package/lib/typescript/commonjs/ui/utils/sessionHelpers.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/hookUtils.d.ts.map +1 -1
- package/lib/typescript/module/ui/client.d.ts +0 -1
- package/lib/typescript/module/ui/client.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/Icon.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SignInModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/types.d.ts +1 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/TouchableRipple/Pressable.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts +1 -1
- package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentMethodStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentReviewStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/types.d.ts +18 -17
- package/lib/typescript/module/ui/components/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SessionManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/types/navigation.d.ts +2 -0
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/fileManagement.d.ts +1 -1
- package/lib/typescript/module/ui/utils/fileManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/sessionHelpers.d.ts +2 -1
- package/lib/typescript/module/ui/utils/sessionHelpers.d.ts.map +1 -1
- package/lib/typescript/module/utils/hookUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/ui/client.ts +0 -1
- package/src/ui/components/BottomSheet.tsx +4 -3
- package/src/ui/components/FontLoader.tsx +1 -1
- package/src/ui/components/Header.tsx +2 -2
- package/src/ui/components/HelperText.tsx +1 -1
- package/src/ui/components/Icon.tsx +2 -0
- package/src/ui/components/OxyProvider.tsx +6 -0
- package/src/ui/components/QuickActions.tsx +1 -1
- package/src/ui/components/SignInModal.tsx +6 -5
- package/src/ui/components/TextField/Adornment/types.tsx +1 -1
- package/src/ui/components/TouchableRipple/Pressable.tsx +1 -0
- package/src/ui/components/feedback/FormInput.tsx +1 -1
- package/src/ui/components/fileManagement/AnimatedButton.tsx +2 -2
- package/src/ui/components/icon/OxyIcon.tsx +1 -1
- package/src/ui/components/modals/DeleteAccountModal.tsx +2 -2
- package/src/ui/components/payment/PaymentDetailsStep.tsx +24 -22
- package/src/ui/components/payment/PaymentMethodStep.tsx +7 -5
- package/src/ui/components/payment/PaymentReviewStep.tsx +15 -13
- package/src/ui/components/payment/PaymentSuccessStep.tsx +7 -5
- package/src/ui/components/payment/PaymentSummaryStep.tsx +12 -10
- package/src/ui/components/types.tsx +19 -17
- package/src/ui/hooks/useAssets.ts +8 -8
- package/src/ui/hooks/useAsyncAction.ts +4 -4
- package/src/ui/hooks/useFollow.ts +1 -1
- package/src/ui/hooks/useProfileEditing.ts +1 -1
- package/src/ui/hooks/useSettingToggle.ts +4 -4
- package/src/ui/screens/AccountOverviewScreen.tsx +6 -6
- package/src/ui/screens/AccountVerificationScreen.tsx +2 -2
- package/src/ui/screens/AppInfoScreen.tsx +63 -61
- package/src/ui/screens/FeedbackScreen.tsx +3 -3
- package/src/ui/screens/FileManagementScreen.tsx +130 -121
- package/src/ui/screens/LanguageSelectorScreen.tsx +3 -3
- package/src/ui/screens/LearnMoreUsernamesScreen.tsx +22 -19
- package/src/ui/screens/OxyAuthScreen.tsx +3 -3
- package/src/ui/screens/PaymentGatewayScreen.tsx +4 -2
- package/src/ui/screens/SessionManagementScreen.tsx +30 -28
- package/src/ui/screens/UserLinksScreen.tsx +5 -3
- package/src/ui/screens/WelcomeNewUserScreen.tsx +2 -2
- package/src/ui/screens/karma/KarmaLeaderboardScreen.tsx +1 -1
- package/src/ui/screens/karma/KarmaRulesScreen.tsx +1 -1
- package/src/ui/stores/followStore.ts +4 -4
- package/src/ui/types/navigation.ts +2 -0
- package/src/ui/utils/errorHandlers.ts +2 -2
- package/src/ui/utils/fileManagement.ts +13 -8
- package/src/ui/utils/sessionHelpers.ts +3 -2
- package/src/ui/utils/storageHelpers.ts +1 -1
- package/src/utils/hookUtils.ts +4 -2
- package/lib/commonjs/ui/components/AnimationExample.js +0 -213
- package/lib/commonjs/ui/components/AnimationExample.js.map +0 -1
- package/lib/commonjs/ui/components/ErrorBoundary.js +0 -145
- package/lib/commonjs/ui/components/ErrorBoundary.js.map +0 -1
- package/lib/commonjs/ui/components/WebOxyProvider.js +0 -106
- package/lib/commonjs/ui/components/WebOxyProvider.js.map +0 -1
- package/lib/module/ui/components/AnimationExample.js +0 -209
- package/lib/module/ui/components/AnimationExample.js.map +0 -1
- package/lib/module/ui/components/ErrorBoundary.js +0 -139
- package/lib/module/ui/components/ErrorBoundary.js.map +0 -1
- package/lib/module/ui/components/WebOxyProvider.js +0 -102
- package/lib/module/ui/components/WebOxyProvider.js.map +0 -1
- package/lib/typescript/commonjs/ui/components/AnimationExample.d.ts +0 -4
- package/lib/typescript/commonjs/ui/components/AnimationExample.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/ErrorBoundary.d.ts +0 -31
- package/lib/typescript/commonjs/ui/components/ErrorBoundary.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/WebOxyProvider.d.ts +0 -52
- package/lib/typescript/commonjs/ui/components/WebOxyProvider.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/AnimationExample.d.ts +0 -4
- package/lib/typescript/module/ui/components/AnimationExample.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/ErrorBoundary.d.ts +0 -31
- package/lib/typescript/module/ui/components/ErrorBoundary.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/WebOxyProvider.d.ts +0 -52
- package/lib/typescript/module/ui/components/WebOxyProvider.d.ts.map +0 -1
- package/src/ui/components/AnimationExample.tsx +0 -195
- package/src/ui/components/ErrorBoundary.tsx +0 -154
- package/src/ui/components/WebOxyProvider.tsx +0 -117
|
@@ -7,6 +7,7 @@ import GroupedPillButtons from '../internal/GroupedPillButtons';
|
|
|
7
7
|
import { createPaymentStyles } from './paymentStyles';
|
|
8
8
|
import { getCurrencySymbol, CURRENCY_SYMBOLS } from './constants';
|
|
9
9
|
import type { PaymentItem, PaymentColors, PaymentStepAnimations } from './types';
|
|
10
|
+
import { useI18n } from '../../hooks/useI18n';
|
|
10
11
|
|
|
11
12
|
interface PaymentSummaryStepProps {
|
|
12
13
|
paymentItems: PaymentItem[];
|
|
@@ -40,6 +41,7 @@ const PaymentSummaryStep: React.FC<PaymentSummaryStepProps> = ({
|
|
|
40
41
|
onNext,
|
|
41
42
|
}) => {
|
|
42
43
|
const styles = useMemo(() => createPaymentStyles(colors), [colors]);
|
|
44
|
+
const { t } = useI18n();
|
|
43
45
|
const currencySymbol = getCurrencySymbol(currency);
|
|
44
46
|
const { fadeAnim, slideAnim, scaleAnim } = animations;
|
|
45
47
|
|
|
@@ -59,7 +61,7 @@ const PaymentSummaryStep: React.FC<PaymentSummaryStepProps> = ({
|
|
|
59
61
|
accessibilityLabel="Payment summary step"
|
|
60
62
|
>
|
|
61
63
|
<View style={styles.section}>
|
|
62
|
-
<Text style={styles.sectionTitle}>
|
|
64
|
+
<Text style={styles.sectionTitle}>{t('payment.summary.title')}</Text>
|
|
63
65
|
|
|
64
66
|
<View style={styles.summaryCard}>
|
|
65
67
|
<View style={styles.summaryCardContent}>
|
|
@@ -70,10 +72,10 @@ const PaymentSummaryStep: React.FC<PaymentSummaryStepProps> = ({
|
|
|
70
72
|
style={styles.summaryCardIcon}
|
|
71
73
|
/>
|
|
72
74
|
<Text style={styles.summaryCardMainTitle}>
|
|
73
|
-
{paymentItems.length > 0 ? '
|
|
75
|
+
{paymentItems.length > 0 ? t('payment.summary.orderSummary') : t('payment.summary.payment')}
|
|
74
76
|
</Text>
|
|
75
77
|
<Text style={styles.summaryCardSubtitle}>
|
|
76
|
-
{paymentItems.length > 0 ? '
|
|
78
|
+
{paymentItems.length > 0 ? t('payment.summary.reviewDetails') : t('payment.summary.completePayment')}
|
|
77
79
|
</Text>
|
|
78
80
|
|
|
79
81
|
{paymentItems.length > 0 ? (
|
|
@@ -99,15 +101,15 @@ const PaymentSummaryStep: React.FC<PaymentSummaryStepProps> = ({
|
|
|
99
101
|
|
|
100
102
|
<View style={styles.summaryCardTotalSection}>
|
|
101
103
|
<View style={styles.summaryCardTotalRow}>
|
|
102
|
-
<Text style={styles.summaryCardTotalLabel}>
|
|
104
|
+
<Text style={styles.summaryCardTotalLabel}>{t('payment.summary.subtotal')}</Text>
|
|
103
105
|
<Text style={styles.summaryCardTotalValue}>{currencySymbol} {amount}</Text>
|
|
104
106
|
</View>
|
|
105
107
|
<View style={styles.summaryCardTotalRow}>
|
|
106
|
-
<Text style={styles.summaryCardTotalLabel}>
|
|
108
|
+
<Text style={styles.summaryCardTotalLabel}>{t('payment.summary.tax')}</Text>
|
|
107
109
|
<Text style={styles.summaryCardTotalValue}>{currencySymbol} 0.00</Text>
|
|
108
110
|
</View>
|
|
109
111
|
<View style={styles.summaryCardTotalRow}>
|
|
110
|
-
<Text style={styles.summaryCardTotalLabel}>
|
|
112
|
+
<Text style={styles.summaryCardTotalLabel}>{t('payment.summary.total')}</Text>
|
|
111
113
|
<Text style={styles.summaryCardTotalValue}>{currencySymbol} {amount}</Text>
|
|
112
114
|
</View>
|
|
113
115
|
</View>
|
|
@@ -115,7 +117,7 @@ const PaymentSummaryStep: React.FC<PaymentSummaryStepProps> = ({
|
|
|
115
117
|
) : (
|
|
116
118
|
<>
|
|
117
119
|
<View style={styles.summaryCardAmount}>
|
|
118
|
-
<Text style={styles.summaryCardAmountLabel}>
|
|
120
|
+
<Text style={styles.summaryCardAmountLabel}>{t('payment.summary.amountToPay')}</Text>
|
|
119
121
|
<Text style={styles.summaryCardAmountValue}>{currencySymbol} {amount}</Text>
|
|
120
122
|
{description && (
|
|
121
123
|
<Text style={styles.summaryCardAmountDescription}>{description}</Text>
|
|
@@ -126,7 +128,7 @@ const PaymentSummaryStep: React.FC<PaymentSummaryStepProps> = ({
|
|
|
126
128
|
|
|
127
129
|
<View style={styles.summaryCardTotalSection}>
|
|
128
130
|
<View style={styles.summaryCardTotalRow}>
|
|
129
|
-
<Text style={styles.summaryCardTotalLabel}>
|
|
131
|
+
<Text style={styles.summaryCardTotalLabel}>{t('payment.summary.total')}</Text>
|
|
130
132
|
<Text style={styles.summaryCardTotalValue}>{currencySymbol} {amount}</Text>
|
|
131
133
|
</View>
|
|
132
134
|
</View>
|
|
@@ -139,13 +141,13 @@ const PaymentSummaryStep: React.FC<PaymentSummaryStepProps> = ({
|
|
|
139
141
|
<GroupedPillButtons
|
|
140
142
|
buttons={[
|
|
141
143
|
{
|
|
142
|
-
text: '
|
|
144
|
+
text: t('payment.actions.close'),
|
|
143
145
|
onPress: onClose,
|
|
144
146
|
icon: 'close',
|
|
145
147
|
variant: 'transparent',
|
|
146
148
|
},
|
|
147
149
|
{
|
|
148
|
-
text: '
|
|
150
|
+
text: t('payment.actions.continue'),
|
|
149
151
|
onPress: onNext,
|
|
150
152
|
icon: 'arrow-forward',
|
|
151
153
|
variant: 'primary',
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { TextStyle } from 'react-native';
|
|
2
|
+
|
|
1
3
|
// Types for react-native-paper compatibility
|
|
2
4
|
// Support both string theme ('light' | 'dark') and InternalTheme object
|
|
3
5
|
export type ThemeProp = Partial<InternalTheme> | 'light' | 'dark';
|
|
@@ -61,24 +63,24 @@ export type InternalTheme = {
|
|
|
61
63
|
placeholder?: string;
|
|
62
64
|
};
|
|
63
65
|
fonts: {
|
|
64
|
-
displayLarge:
|
|
65
|
-
displayMedium:
|
|
66
|
-
displaySmall:
|
|
67
|
-
headlineLarge:
|
|
68
|
-
headlineMedium:
|
|
69
|
-
headlineSmall:
|
|
70
|
-
titleLarge:
|
|
71
|
-
titleMedium:
|
|
72
|
-
titleSmall:
|
|
73
|
-
labelLarge:
|
|
74
|
-
labelMedium:
|
|
75
|
-
labelSmall:
|
|
76
|
-
bodyLarge:
|
|
77
|
-
bodyMedium:
|
|
78
|
-
bodySmall:
|
|
79
|
-
default:
|
|
66
|
+
displayLarge: TextStyle;
|
|
67
|
+
displayMedium: TextStyle;
|
|
68
|
+
displaySmall: TextStyle;
|
|
69
|
+
headlineLarge: TextStyle;
|
|
70
|
+
headlineMedium: TextStyle;
|
|
71
|
+
headlineSmall: TextStyle;
|
|
72
|
+
titleLarge: TextStyle;
|
|
73
|
+
titleMedium: TextStyle;
|
|
74
|
+
titleSmall: TextStyle;
|
|
75
|
+
labelLarge: TextStyle;
|
|
76
|
+
labelMedium: TextStyle;
|
|
77
|
+
labelSmall: TextStyle;
|
|
78
|
+
bodyLarge: TextStyle;
|
|
79
|
+
bodyMedium: TextStyle;
|
|
80
|
+
bodySmall: TextStyle;
|
|
81
|
+
default: TextStyle;
|
|
80
82
|
// Legacy property for backward compatibility
|
|
81
|
-
regular?:
|
|
83
|
+
regular?: TextStyle;
|
|
82
84
|
};
|
|
83
85
|
};
|
|
84
86
|
|
|
@@ -84,8 +84,8 @@ export const useAssets = () => {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
return null;
|
|
87
|
-
} catch (error:
|
|
88
|
-
setUploadError(error.message || 'Upload failed');
|
|
87
|
+
} catch (error: unknown) {
|
|
88
|
+
setUploadError((error instanceof Error ? error.message : null) || 'Upload failed');
|
|
89
89
|
throw error;
|
|
90
90
|
} finally {
|
|
91
91
|
setUploading(false);
|
|
@@ -133,8 +133,8 @@ export const useAssets = () => {
|
|
|
133
133
|
createdAt: new Date().toISOString()
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
-
} catch (error:
|
|
137
|
-
setLinkError(error.message || 'Link failed');
|
|
136
|
+
} catch (error: unknown) {
|
|
137
|
+
setLinkError((error instanceof Error ? error.message : null) || 'Link failed');
|
|
138
138
|
throw error;
|
|
139
139
|
} finally {
|
|
140
140
|
setLinking(false);
|
|
@@ -164,8 +164,8 @@ export const useAssets = () => {
|
|
|
164
164
|
// Update store optimistically
|
|
165
165
|
removeLink(assetId, app, entityType, entityId);
|
|
166
166
|
}
|
|
167
|
-
} catch (error:
|
|
168
|
-
setLinkError(error.message || 'Unlink failed');
|
|
167
|
+
} catch (error: unknown) {
|
|
168
|
+
setLinkError((error instanceof Error ? error.message : null) || 'Unlink failed');
|
|
169
169
|
throw error;
|
|
170
170
|
} finally {
|
|
171
171
|
setLinking(false);
|
|
@@ -213,8 +213,8 @@ export const useAssets = () => {
|
|
|
213
213
|
|
|
214
214
|
await oxyInstance.assetDelete(assetId, force);
|
|
215
215
|
removeAsset(assetId);
|
|
216
|
-
} catch (error:
|
|
217
|
-
setDeleteError(error.message || 'Delete failed');
|
|
216
|
+
} catch (error: unknown) {
|
|
217
|
+
setDeleteError((error instanceof Error ? error.message : null) || 'Delete failed');
|
|
218
218
|
throw error;
|
|
219
219
|
} finally {
|
|
220
220
|
setDeleting(false);
|
|
@@ -75,10 +75,10 @@ export function useAsyncAction<T = void>(
|
|
|
75
75
|
|
|
76
76
|
onSuccess?.(result);
|
|
77
77
|
return result;
|
|
78
|
-
} catch (err:
|
|
78
|
+
} catch (err: unknown) {
|
|
79
79
|
const message = typeof errorMessage === 'function'
|
|
80
80
|
? errorMessage(err)
|
|
81
|
-
: errorMessage || err
|
|
81
|
+
: errorMessage || (err instanceof Error ? err.message : null) || 'An error occurred';
|
|
82
82
|
|
|
83
83
|
toast.error(message);
|
|
84
84
|
setError(err instanceof Error ? err : new Error(message));
|
|
@@ -120,8 +120,8 @@ export async function executeWithToast<T>(
|
|
|
120
120
|
toast.success(successMessage);
|
|
121
121
|
}
|
|
122
122
|
return result;
|
|
123
|
-
} catch (err:
|
|
124
|
-
toast.error(errorMessage || err
|
|
123
|
+
} catch (err: unknown) {
|
|
124
|
+
toast.error(errorMessage || (err instanceof Error ? err.message : null) || 'An error occurred');
|
|
125
125
|
return undefined;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
@@ -61,7 +61,7 @@ export const useFollow = (userId?: string | string[]) => {
|
|
|
61
61
|
|
|
62
62
|
// If either count is not set and we're not already loading counts, trigger a fetch.
|
|
63
63
|
if ((followerCount === null || followingCount === null) && !isLoadingCounts) {
|
|
64
|
-
fetchUserCounts().catch((err:
|
|
64
|
+
fetchUserCounts().catch((err: unknown) => console.warn('useFollow: fetchUserCounts failed', err));
|
|
65
65
|
}
|
|
66
66
|
}, [isSingleUser, userId, followerCount, followingCount, isLoadingCounts, fetchUserCounts]);
|
|
67
67
|
|
|
@@ -72,13 +72,13 @@ export function useSettingToggle(options: UseSettingToggleOptions): UseSettingTo
|
|
|
72
72
|
if (showSuccessToast && successMessage) {
|
|
73
73
|
toast.success(successMessage);
|
|
74
74
|
}
|
|
75
|
-
} catch (err:
|
|
75
|
+
} catch (err: unknown) {
|
|
76
76
|
// Revert on error
|
|
77
77
|
if (revertOnError) {
|
|
78
78
|
setValue(previousValue);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
toast.error(errorMessage || err
|
|
81
|
+
toast.error(errorMessage || (err instanceof Error ? err.message : null) || 'An error occurred');
|
|
82
82
|
} finally {
|
|
83
83
|
setIsSaving(false);
|
|
84
84
|
}
|
|
@@ -122,7 +122,7 @@ export function useSettingToggles<T extends { [K in keyof T]: boolean }>(options
|
|
|
122
122
|
|
|
123
123
|
try {
|
|
124
124
|
await onSave(key, newValue);
|
|
125
|
-
} catch (err:
|
|
125
|
+
} catch (err: unknown) {
|
|
126
126
|
// Revert on error
|
|
127
127
|
if (revertOnError) {
|
|
128
128
|
setValues(prev => ({ ...prev, [key]: previousValue }));
|
|
@@ -131,7 +131,7 @@ export function useSettingToggles<T extends { [K in keyof T]: boolean }>(options
|
|
|
131
131
|
const message = typeof errorMessage === 'function'
|
|
132
132
|
? errorMessage(key)
|
|
133
133
|
: errorMessage;
|
|
134
|
-
toast.error(message || err
|
|
134
|
+
toast.error(message || (err instanceof Error ? err.message : null) || 'An error occurred');
|
|
135
135
|
} finally {
|
|
136
136
|
setSavingKeys(prev => {
|
|
137
137
|
const next = new Set(prev);
|
|
@@ -246,11 +246,11 @@ const AccountOverviewScreen: React.FC<BaseScreenProps> = ({
|
|
|
246
246
|
// For React Native, you'd need to use a library like expo-file-system
|
|
247
247
|
toast.success(t('accountOverview.items.downloadData.success') || 'Data downloaded successfully');
|
|
248
248
|
}
|
|
249
|
-
} catch (error:
|
|
249
|
+
} catch (error: unknown) {
|
|
250
250
|
if (__DEV__) {
|
|
251
251
|
console.error('Failed to download data:', error);
|
|
252
252
|
}
|
|
253
|
-
toast.error(error
|
|
253
|
+
toast.error((error instanceof Error ? error.message : null) || t('accountOverview.items.downloadData.error') || 'Failed to download data');
|
|
254
254
|
}
|
|
255
255
|
},
|
|
256
256
|
},
|
|
@@ -276,21 +276,21 @@ const AccountOverviewScreen: React.FC<BaseScreenProps> = ({
|
|
|
276
276
|
// For React Native, you'd need to use a library like expo-file-system
|
|
277
277
|
toast.success(t('accountOverview.items.downloadData.success') || 'Data downloaded successfully');
|
|
278
278
|
}
|
|
279
|
-
} catch (error:
|
|
279
|
+
} catch (error: unknown) {
|
|
280
280
|
if (__DEV__) {
|
|
281
281
|
console.error('Failed to download data:', error);
|
|
282
282
|
}
|
|
283
|
-
toast.error(error
|
|
283
|
+
toast.error((error instanceof Error ? error.message : null) || t('accountOverview.items.downloadData.error') || 'Failed to download data');
|
|
284
284
|
}
|
|
285
285
|
},
|
|
286
286
|
},
|
|
287
287
|
]
|
|
288
288
|
);
|
|
289
|
-
} catch (error:
|
|
289
|
+
} catch (error: unknown) {
|
|
290
290
|
if (__DEV__) {
|
|
291
291
|
console.error('Failed to initiate download:', error);
|
|
292
292
|
}
|
|
293
|
-
toast.error(error
|
|
293
|
+
toast.error((error instanceof Error ? error.message : null) || t('accountOverview.items.downloadData.error') || 'Failed to download data');
|
|
294
294
|
}
|
|
295
295
|
}, [oxyServices, user, t]);
|
|
296
296
|
|
|
@@ -70,12 +70,12 @@ const AccountVerificationScreen: React.FC<BaseScreenProps> = ({
|
|
|
70
70
|
},
|
|
71
71
|
]
|
|
72
72
|
);
|
|
73
|
-
} catch (error:
|
|
73
|
+
} catch (error: unknown) {
|
|
74
74
|
if (__DEV__) {
|
|
75
75
|
console.error('Failed to submit verification request:', error);
|
|
76
76
|
}
|
|
77
77
|
toast.error(
|
|
78
|
-
error
|
|
78
|
+
(error instanceof Error ? error.message : null) || t('accountVerification.submitError') || 'Failed to submit verification request'
|
|
79
79
|
);
|
|
80
80
|
} finally {
|
|
81
81
|
setIsSubmitting(false);
|