Skip to content

Commit

Permalink
fix: add background location to brc-20 modal and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed Dec 11, 2023
1 parent 7ec6bd1 commit 7483b9e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/app/features/collectibles/collectibles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ export function Collectibles() {
subHeader={whenWallet({
software: (
<TaprootBalanceDisplayer
onSelectRetrieveBalance={() => navigate(RouteUrls.RetriveTaprootFunds)}
onSelectRetrieveBalance={() =>
navigate(RouteUrls.RetrieveTaprootFunds, {
state: {
backgroundLocation: { pathname: RouteUrls.Home },
},
})
}
/>
),
ledger: null,
Expand Down
2 changes: 1 addition & 1 deletion src/app/routes/app-routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function useAppRoutes() {
{homePageModalRoutes}
</Route>

<Route path={RouteUrls.RetriveTaprootFunds} element={<RetrieveTaprootToNativeSegwit />} />
<Route path={RouteUrls.RetrieveTaprootFunds} element={<RetrieveTaprootToNativeSegwit />} />
<Route path={RouteUrls.IncreaseStxFee} element={<IncreaseStxFeeDrawer />}>
{ledgerStacksTxSigningRoutes}
</Route>
Expand Down
2 changes: 1 addition & 1 deletion src/shared/route-urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export enum RouteUrls {
EditNonce = 'edit-nonce',
SelectNetwork = 'choose-network',
SignOutConfirm = 'sign-out',
RetriveTaprootFunds = 'retrive-taproot-funds',
RetrieveTaprootFunds = 'retrieve-taproot-funds',

// Send crypto asset routes
SendCryptoAsset = '/send',
Expand Down

0 comments on commit 7483b9e

Please sign in to comment.