Skip to content

Commit

Permalink
fix: back button not showing in compact modal size (download option) (#…
Browse files Browse the repository at this point in the history
…1705)

* fix: compact modal back button bug and wide modal back button tweak

* format: fix
  • Loading branch information
magiziz committed Jan 31, 2024
1 parent a79609b commit cf4955f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .changeset/odd-adults-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@rainbow-me/rainbowkit": patch
---

Fixed a bug where the back button wasn't showing on compact size modal when selecting `DownloadOptions` wallet step.

Removed back button for wide size modal entirely when selecting `DownloadOptions` wallet step to prevent incorrect wallet step switching.
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ export function DesktopOptions({ onClose }: { onClose: () => void }) {
i18n.t('get_options.short_title', { wallet: selectedWallet.name });
headerBackButtonLink = connector
? WalletStep.Connect
: hasExtensionAndMobile && WalletStep.Connect
? initialWalletStep
: compactModeEnabled
? WalletStep.None
: null;
break;
case WalletStep.Download:
Expand Down

0 comments on commit cf4955f

Please sign in to comment.