-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: close add account v2 multiple navigator via a confirmation draw…
…er (#8959)
- Loading branch information
1 parent
03c5920
commit c8f0c9a
Showing
14 changed files
with
153 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"live-mobile": minor | ||
--- | ||
|
||
Add account v2 close process management |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
apps/ledger-live-mobile/src/newArch/components/CloseWithConfirmation/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import React from "react"; | ||
import { Trans } from "react-i18next"; | ||
import { useRoute } from "@react-navigation/native"; | ||
import { NavigationHeaderCloseButtonAdvanced } from "~/components/NavigationHeaderCloseButton"; | ||
import { ScreenName } from "~/const"; | ||
|
||
const routesWithConfirmation: string[] = [ | ||
ScreenName.SelectDevice, | ||
ScreenName.SelectNetwork, | ||
ScreenName.AddAccountsSelectCrypto, | ||
ScreenName.ScanDeviceAccounts, | ||
ScreenName.NoAssociatedAccounts, | ||
]; | ||
export default function CloseWithConfirmation({ | ||
onClose, | ||
showButton, | ||
buttonText, | ||
}: { | ||
onClose?: () => void; | ||
showButton?: boolean; | ||
buttonText?: string; | ||
}) { | ||
const route = useRoute(); | ||
return ( | ||
<NavigationHeaderCloseButtonAdvanced | ||
withConfirmation={routesWithConfirmation.includes(route.name)} | ||
confirmationTitle={<Trans i18nKey="addAccounts.quitConfirmation.v2.title" />} | ||
confirmationDesc={<Trans i18nKey="addAccounts.quitConfirmation.v2.desc" />} | ||
{...(onClose && { onClose })} | ||
{...(showButton && { showButton })} | ||
{...(buttonText && { buttonText })} | ||
customDrawerStyle={{ | ||
title: { | ||
textAlign: "left", | ||
fontSize: 24, | ||
fontWeight: 600, | ||
lineHeight: 32.4, | ||
letterSpacing: -0.72, | ||
}, | ||
description: { | ||
textAlign: "left", | ||
paddingHorizontal: 0, | ||
fontSize: 14, | ||
fontWeight: 500, | ||
lineHeight: 21, | ||
}, | ||
}} | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
c8f0c9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Bot] Daily non-reg on develop with 'Nitrogen' ✅ 53 txs ❌ 4 txs 💰 17 miss funds ($473.03) ⏲ 13min 14s
22 critical spec errors
Spec Aptos failed!
Spec Casper failed!
Spec injective failed!
Spec Arbitrum failed!
Spec Arbitrum Sepolia failed!
Spec Moonbeam failed!
Spec Bittorent Chain failed!
Spec OP Mainnet failed!
Spec OP Sepolia failed!
Spec Moonriver failed!
Spec Polygon zkEVM Testnet failed!
Spec Base Sepolia failed!
Spec Klaytn failed!
Spec Linea failed!
Spec Linea Sepolia failed!
Spec Blast failed!
Spec Blast Sepolia failed!
Spec Scroll failed!
Spec Scroll Sepolia failed!
Spec Stacks failed!
Spec Stellar failed!
Spec TON failed!
❌ 4 mutation errors
Please increase the account target to at least 2 accounts
Please increase the account target to at least 2 accounts
Please increase the account target to at least 2 accounts
Portfolio ($473.03) – Details of the 76 currencies
0x246FFDB387F1F8c48072E1C13443540017bC71b7
TM4WJOS4MZ2TD775W7GSXZMBUF74YT6SKSBXCZY3N7OUIAPXE54MZ5FCD4
tb1qva8ex44kkad8gz4m7yukmc9hdvhml29ych5esm
qqw8fmajet0vatt3rxwcwk78q7rx4x9zyq6mgdkhcq
ARzoKs3EsRbi75ChSeVJL7eQqYu8eZTEyg
XjCHRuzLWd9pnCEwc5a7PC9fV29E6EPZBq
dgb1qpqqj4thxkr8x4x4vchhwncy7la99suvhyykdg0
DPMKt6FSk3UXjNya2PKQBiHj4S1W2YiFRh
RWvxKvbgGyaYU6x5CVAHKmhM7ULBqLKFkC
ltc1q4peq848rxcnqmq96e8aavucmtsrsn4yqhhvx36
t1SDpcaNZmbCH5TCCb5vNAh5bXs3isDtA5h
znaTusSfppW8pCXjtxLAFsYbJheMQBdFWxW
osmo1rs97j43nfyvc689y5rjvnnhrq3tes6ghn8m44l
desmos1rs97j43nfyvc689y5rjvnnhrq3tes6gh0y9454
dydx1rs97j43nfyvc689y5rjvnnhrq3tes6ghj9xpr6
umee1rs97j43nfyvc689y5rjvnnhrq3tes6ghf2468l
persistence1rs97j43nfyvc689y5rjvnnhrq3tes6gh4swkdf
quick1rs97j43nfyvc689y5rjvnnhrq3tes6ghscch6l
onomy1rs97j43nfyvc689y5rjvnnhrq3tes6ghpaunjg
sei1rs97j43nfyvc689y5rjvnnhrq3tes6ghksen9v
stars1rs97j43nfyvc689y5rjvnnhrq3tes6gh0qlcgu
core1rs97j43nfyvc689y5rjvnnhrq3tes6ghgjs7yk
mantra1rs97j43nfyvc689y5rjvnnhrq3tes6ghshzpqh
cro14zpaxs3msrdnx5ch3m3y3yue0wwwevrf2hmwra
xion1rs97j43nfyvc689y5rjvnnhrq3tes6ghe4j84x
zen1rs97j43nfyvc689y5rjvnnhrq3tes6ghp36y0u
erd18n5sk95fq9dtgdsa9m9q5ddp66ch9cq5lpjflwn5j9z8x2e9h0qqrvk5qp
0x7584df0780C5eB83b26aE55abBc265014f8bf897
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0x60A4E7657D8df28594ac4A06CDe01E18E948a892
0.0.3663977
f2ed4c9253d3aca7d679bfa9f528d13e85c7f522b8857e094c850a157b750209
hxdd614da5f057ce32185619f98edd81445a946ea5
0573d7a9c745fa9fe224b080832aa93d740760b94f192c9c141c709945e9aaaf
5vhAGihUC1uKucJvreCgWWXB6LEptPwkwpqhkq9M6iaz
tz1aDK1uFAmnUXZ7KJPEmcCEFeYHiVZ56zVF
0xc4B17901FECf86932c3bb296BB00E7c6816Fd416
0xc4B17901FECf86932c3bb296BB00E7c6816Fd416
r9etPtq3oboweMPju5gdYufmvwhH2euz8z
Performance ⏲ 13min 14s
Time spent for each spec: (total across mutations)