Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into feature/tx-review
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss committed Oct 9, 2024
2 parents 35ea23e + bf707c9 commit 6bb8f5e
Show file tree
Hide file tree
Showing 8 changed files with 400 additions and 474 deletions.
1 change: 1 addition & 0 deletions apps/wallet-mobile/.storybook/storybook.requires.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions apps/wallet-mobile/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -516,12 +516,9 @@ PODS:
- RNScreens (3.22.1):
- React-Core
- React-RCTImage
- RNSentry (5.33.1):
- hermes-engine
- RCT-Folly (= 2021.07.22.00)
- RNSentry (5.8.0):
- React-Core
- React-hermes
- Sentry/HybridSDK (= 8.36.0)
- Sentry/HybridSDK (= 8.9.3)
- RNShare (10.0.2):
- React-Core
- RNSVG (13.8.0):
Expand All @@ -537,7 +534,9 @@ PODS:
- SDWebImageWebPCoder (0.11.0):
- libwebp (~> 1.0)
- SDWebImage/Core (~> 5.15)
- Sentry/HybridSDK (8.36.0)
- Sentry/HybridSDK (8.9.3):
- SentryPrivate (= 8.9.3)
- SentryPrivate (8.9.3)
- Yoga (1.14.0)
- ZXingObjC/Core (3.6.9)
- ZXingObjC/OneD (3.6.9):
Expand Down Expand Up @@ -651,6 +650,7 @@ SPEC REPOS:
- SDWebImageSVGCoder
- SDWebImageWebPCoder
- Sentry
- SentryPrivate
- ZXingObjC

EXTERNAL SOURCES:
Expand Down Expand Up @@ -919,14 +919,15 @@ SPEC CHECKSUMS:
RNPermissions: f1b49dd05fa9b83993cd05a9ee115247944d8f1a
RNReanimated: d6b4b867b6d1ee0798f5fb372708fa4bb8d66029
RNScreens: 50ffe2fa2342eabb2d0afbe19f7c1af286bc7fb3
RNSentry: 0744d3c79504bc4778190d047d1b60daf4a378cd
RNSentry: f9e637773502a61c7b455c4ce65bc7008ce22a6e
RNShare: 859ff710211285676b0bcedd156c12437ea1d564
RNSVG: c1e76b81c76cdcd34b4e1188852892dc280eb902
SDWebImage: cb032eba469c54e0000e78bcb0a13cdde0a52798
SDWebImageAVIFCoder: 8348fef6d0ec69e129c66c9fe4d74fbfbf366112
SDWebImageSVGCoder: 15a300a97ec1c8ac958f009c02220ac0402e936c
SDWebImageWebPCoder: 295a6573c512f54ad2dd58098e64e17dcf008499
Sentry: f8374b5415bc38dfb5645941b3ae31230fbeae57
Sentry: 97161cac725da1ecbe77d1445bf8a61c1e5667f1
SentryPrivate: 9a76def09fb08f9501997b8df946e8097947b94f
Yoga: e71803b4c1fff832ccf9b92541e00f9b873119b9
ZXingObjC: 8898711ab495761b2dbbdec76d90164a6d7e14c5

Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"@react-navigation/native": "^6.1.6",
"@react-navigation/routers": "^6.1.5",
"@react-navigation/stack": "^6.3.16",
"@sentry/react-native": "^5.33.1",
"@sentry/react-native": "^5.8.0",
"@shopify/flash-list": "^1.4.1",
"@types/bip39": "^3.0.0",
"@types/pbkdf2": "^3.1.2",
Expand Down
75 changes: 36 additions & 39 deletions apps/wallet-mobile/src/WalletNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
swapStorageMaker,
} from '@yoroi/swap'
import {useTheme} from '@yoroi/theme'
import {TransferProvider} from '@yoroi/transfer'
import {Swap} from '@yoroi/types'
import React from 'react'
import {defineMessages, useIntl} from 'react-intl'
Expand Down Expand Up @@ -234,53 +233,51 @@ export const WalletNavigator = () => {
}

return (
<TransferProvider>
<SearchProvider>
<Stack.Navigator
screenOptions={{
...navOptions,
headerLeft: undefined,
<SearchProvider>
<Stack.Navigator
screenOptions={{
...navOptions,
headerLeft: undefined,
}}
>
<Stack.Screen
name="wallet-selection"
options={{
title: strings.walletSelectionScreenHeader,
headerTitle: ({children}) => <NetworkTag directChangeActive>{children}</NetworkTag>,
}}
>
<Stack.Screen
name="wallet-selection"
options={{
title: strings.walletSelectionScreenHeader,
headerTitle: ({children}) => <NetworkTag directChangeActive>{children}</NetworkTag>,
}}
component={SelectWalletFromList}
/>
component={SelectWalletFromList}
/>

<Stack.Screen //
name="setup-wallet"
options={{headerShown: false}}
component={SetupWalletNavigator}
/>
<Stack.Screen //
name="setup-wallet"
options={{headerShown: false}}
component={SetupWalletNavigator}
/>

<Stack.Screen name="main-wallet-routes" options={{headerShown: false}} component={WalletTabNavigator} />
<Stack.Screen name="main-wallet-routes" options={{headerShown: false}} component={WalletTabNavigator} />

<Stack.Screen name="settings" options={{headerShown: false}} component={SettingsScreenNavigator} />
<Stack.Screen name="settings" options={{headerShown: false}} component={SettingsScreenNavigator} />

<Stack.Screen name="review-tx-routes" options={{headerShown: false}} component={ReviewTxNavigator} />
<Stack.Screen name="review-tx-routes" options={{headerShown: false}} component={ReviewTxNavigator} />

<Stack.Screen
name="voting-registration"
options={{headerShown: false}}
getComponent={() => CatalystNavigator}
/>
<Stack.Screen
name="voting-registration"
options={{headerShown: false}}
getComponent={() => CatalystNavigator}
/>

<Stack.Screen
name="toggle-analytics-settings"
options={{headerShown: false}}
component={ToggleAnalyticsSettingsNavigator}
/>
<Stack.Screen
name="toggle-analytics-settings"
options={{headerShown: false}}
component={ToggleAnalyticsSettingsNavigator}
/>

<Stack.Screen name="governance" options={{headerShown: false}} component={GovernanceNavigator} />
<Stack.Screen name="governance" options={{headerShown: false}} component={GovernanceNavigator} />

<Stack.Screen name="staking-dashboard" options={{headerShown: false}} component={DashboardNavigator} />
</Stack.Navigator>
</SearchProvider>
</TransferProvider>
<Stack.Screen name="staking-dashboard" options={{headerShown: false}} component={DashboardNavigator} />
</Stack.Navigator>
</SearchProvider>
)
}

Expand Down
25 changes: 14 additions & 11 deletions apps/wallet-mobile/src/YoroiApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {AsyncStorageProvider} from '@yoroi/common'
import {LinksProvider} from '@yoroi/links'
import {SetupWalletProvider} from '@yoroi/setup-wallet'
import {ThemeProvider} from '@yoroi/theme'
import {TransferProvider} from '@yoroi/transfer'
import React from 'react'
import {LogBox, StyleSheet} from 'react-native'
import * as RNP from 'react-native-paper'
Expand Down Expand Up @@ -58,17 +59,19 @@ const Yoroi = () => {
<LoadingBoundary style={StyleSheet.absoluteFill}>
<LanguageProvider>
<AuthProvider>
<LinksProvider>
<SetupWalletProvider>
<PoolTransitionProvider>
<BrowserProvider>
<AutomaticWalletOpenerProvider>
<InitApp />
</AutomaticWalletOpenerProvider>
</BrowserProvider>
</PoolTransitionProvider>
</SetupWalletProvider>
</LinksProvider>
<TransferProvider>
<LinksProvider>
<SetupWalletProvider>
<PoolTransitionProvider>
<BrowserProvider>
<AutomaticWalletOpenerProvider>
<InitApp />
</AutomaticWalletOpenerProvider>
</BrowserProvider>
</PoolTransitionProvider>
</SetupWalletProvider>
</LinksProvider>
</TransferProvider>
</AuthProvider>
</LanguageProvider>
</LoadingBoundary>
Expand Down
Loading

0 comments on commit 6bb8f5e

Please sign in to comment.