Skip to content

Commit 572b5ef

Browse files
authored
Merge pull request #10632 from LedgerHQ/feat/mad_add_custom_close
✨ (MAD-Add account) custom drawer close button
2 parents 90e0e92 + 9aa6bf4 commit 572b5ef

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.changeset/chatty-planets-cross.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"ledger-live-desktop": minor
3+
---
4+
5+
use custom close button for add account mad

apps/ledger-live-desktop/src/newArch/features/ModularDrawer/hooks/useOpenAssetFlow.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,13 @@ export function useOpenAssetFlow(modularDrawerLocation: ModularDrawerLocation, s
6262
const openAddAccountFlow = useCallback(
6363
(currency: CryptoOrTokenCurrency) => {
6464
if (featureNetworkBasedAddAccount?.enabled) {
65-
setDrawer(ModularDrawerAddAccountFlowManager, {
66-
currency,
67-
});
65+
setDrawer(
66+
ModularDrawerAddAccountFlowManager,
67+
{
68+
currency,
69+
},
70+
{ closeButtonComponent: CloseButton },
71+
);
6872
} else {
6973
const cryptoCurrency =
7074
currency.type === "CryptoCurrency" ? currency : currency.parentCurrency;

0 commit comments

Comments
 (0)