Skip to content

Commit

Permalink
fix: paths
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisduma-ledger committed Nov 13, 2024
1 parent 02b3d81 commit e197cd5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const createExchangeScreen =
lastScreen,
platform,
referrer,
mode,
} = props.route.params || {};
const resolvedCurrency = currency
? findCryptoCurrencyByKeyword(currency)?.id
Expand All @@ -54,6 +55,7 @@ const createExchangeScreen =
lastScreen,
platform: platform || defaultPlatform,
referrer: referrer,
mode,
},
}}
/>
Expand All @@ -76,6 +78,7 @@ export default function ExchangeLiveAppNavigator() {
headerStyle: styles.headerNoShadow,
title: "",
}}
initialParams={{ mode: "onRamp" }}
>
{props => <ExchangeBuy {...props} />}
</Stack.Screen>
Expand All @@ -85,6 +88,7 @@ export default function ExchangeLiveAppNavigator() {
options={{
headerStyle: styles.headerNoShadow,
}}
initialParams={{ mode: "offRamp" }}
>
{props => <ExchangeSell {...props} />}
</Stack.Screen>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ type ExchangeParams = CommonParams & {
defaultAccountId?: string;
defaultCurrencyId?: string;
defaultTicker?: string;
mode?: "offRamp" | "onRamp";
};

export type PtxNavigatorParamList = {
Expand Down

0 comments on commit e197cd5

Please sign in to comment.