Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/src/components/NavBar/HomeNavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
import { Clipboard as ClipboardIcon } from '@tamagui/lucide-icons';

import type { SelfApp } from '@selfxyz/common/utils/appType';
import { useSelfAppStore } from '@selfxyz/mobile-sdk-alpha/stores';

import { NavBar } from '@/components/NavBar/BaseNavBar';
import ActivityIcon from '@/images/icons/activity.svg';
import ScanIcon from '@/images/icons/qr_scan.svg';
import SettingsIcon from '@/images/icons/settings.svg';
import { useSelfAppStore } from '@/stores/selfAppStore';
import { black, charcoal, neutral400, slate50, white } from '@/utils/colors';

Check warning on line 19 in app/src/components/NavBar/HomeNavBar.tsx

View workflow job for this annotation

GitHub Actions / build-deps

'white' is defined but never used

Check warning on line 19 in app/src/components/NavBar/HomeNavBar.tsx

View workflow job for this annotation

GitHub Actions / build-deps

'neutral400' is defined but never used
import { extraYPadding } from '@/utils/constants';
import { buttonTap } from '@/utils/haptic';

Expand Down
4 changes: 2 additions & 2 deletions app/src/screens/prove/ConfirmBelongingScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ const ConfirmBelongingScreen: React.FC<ConfirmBelongingScreenProps> = () => {
if (permissionGranted) {
const token = await getFCMToken();
if (token) {
setFcmToken(token);
setFcmToken(token, selfClient);
trackEvent(ProofEvents.FCM_TOKEN_STORED);
}
}

// Mark as user confirmed - proving will start automatically when ready
setUserConfirmed();
setUserConfirmed(selfClient);

// Navigate to loading screen
navigate();
Expand Down
2 changes: 1 addition & 1 deletion app/src/screens/prove/ProofRequestStatusScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { useIsFocused } from '@react-navigation/native';

import { useSelfClient } from '@selfxyz/mobile-sdk-alpha';
import { ProofEvents } from '@selfxyz/mobile-sdk-alpha/constants/analytics';
import { useSelfAppStore } from '@selfxyz/mobile-sdk-alpha/stores';

import loadingAnimation from '@/assets/animations/loading/misc.json';
import failAnimation from '@/assets/animations/proof_failed.json';
Expand All @@ -24,7 +25,6 @@ import useHapticNavigation from '@/hooks/useHapticNavigation';
import { ExpandableBottomLayout } from '@/layouts/ExpandableBottomLayout';
import { ProofStatus } from '@/stores/proof-types';
import { useProofHistoryStore } from '@/stores/proofHistoryStore';
import { useSelfAppStore } from '@/stores/selfAppStore';
import { black, white } from '@/utils/colors';
import {
buttonTap,
Expand Down
4 changes: 2 additions & 2 deletions app/src/screens/prove/ProveScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import type { SelfAppDisclosureConfig } from '@selfxyz/common/utils/appType';
import { formatEndpoint } from '@selfxyz/common/utils/scope';
import { useSelfClient } from '@selfxyz/mobile-sdk-alpha';
import { ProofEvents } from '@selfxyz/mobile-sdk-alpha/constants/analytics';
import { useSelfAppStore } from '@selfxyz/mobile-sdk-alpha/stores';

import miscAnimation from '@/assets/animations/loading/misc.json';
import { HeldPrimaryButtonProveScreen } from '@/components/buttons/HeldPrimaryButtonProveScreen';
Expand All @@ -37,7 +38,6 @@ import {
} from '@/providers/passportDataProvider';
import { ProofStatus } from '@/stores/proof-types';
import { useProofHistoryStore } from '@/stores/proofHistoryStore';
import { useSelfAppStore } from '@/stores/selfAppStore';
import { black, slate300, white } from '@/utils/colors';
import { formatUserId } from '@/utils/formatUserId';
import { buttonTap } from '@/utils/haptic';
Expand Down Expand Up @@ -149,7 +149,7 @@ const ProveScreen: React.FC = () => {
);

function onVerify() {
provingStore.setUserConfirmed();
provingStore.setUserConfirmed(selfClient);
buttonTap();
trackEvent(ProofEvents.PROOF_VERIFY_CONFIRMATION_ACCEPTED, {
appName: selectedApp?.appName,
Expand Down
2 changes: 1 addition & 1 deletion app/src/screens/prove/QRCodeViewFinderScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {

import { useSelfClient } from '@selfxyz/mobile-sdk-alpha';
import { ProofEvents } from '@selfxyz/mobile-sdk-alpha/constants/analytics';
import { useSelfAppStore } from '@selfxyz/mobile-sdk-alpha/stores';

import qrScanAnimation from '@/assets/animations/qr_scan.json';
import { SecondaryButton } from '@/components/buttons/SecondaryButton';
Expand All @@ -26,7 +27,6 @@ import useConnectionModal from '@/hooks/useConnectionModal';
import useHapticNavigation from '@/hooks/useHapticNavigation';
import QRScan from '@/images/icons/qr_code.svg';
import { ExpandableBottomLayout } from '@/layouts/ExpandableBottomLayout';
import { useSelfAppStore } from '@/stores/selfAppStore';
import { black, slate800, white } from '@/utils/colors';
import { parseAndValidateUrlParams } from '@/utils/deeplinks';

Expand Down
2 changes: 1 addition & 1 deletion app/src/utils/deeplinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { Linking, Platform } from 'react-native';

import { countries } from '@selfxyz/common/constants/countries';
import type { IdDocInput } from '@selfxyz/common/utils';
import { useSelfAppStore } from '@selfxyz/mobile-sdk-alpha/stores';

import { navigationRef } from '@/navigation';
import { useSelfAppStore } from '@/stores/selfAppStore';
import useUserStore from '@/stores/userStore';

// Validation patterns for each expected parameter
Expand Down
31 changes: 0 additions & 31 deletions app/src/utils/proving/provingInputs.ts

This file was deleted.

Loading
Loading