-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7141 from LedgerHQ/feat/LIVE-12149
⛓️feat(llm): add WS activation drawer from onboarding
- Loading branch information
Showing
4 changed files
with
61 additions
and
5 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": patch | ||
--- | ||
|
||
Add activation drawer from onboarding entry point |
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
38 changes: 38 additions & 0 deletions
38
...edger-live-mobile/src/newArch/features/WalletSync/screens/Activation/ActivationDrawer.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,38 @@ | ||
import React from "react"; | ||
import QueuedDrawer from "LLM/components/QueuedDrawer"; | ||
import Activation from "../../components/Activation"; | ||
import Drawer from "LLM/components/Dummy/Drawer"; | ||
import { TrackScreen } from "~/analytics"; | ||
|
||
type Props = { | ||
isOpen: boolean; | ||
reopenDrawer: () => void; | ||
handleClose: () => void; | ||
}; | ||
|
||
const ActivationDrawer = ({ isOpen, handleClose, reopenDrawer }: Props) => { | ||
const [isSyncMethodDrawerOpen, setIsSyncMethodDrawerOpen] = React.useState(false); | ||
|
||
const onPressCloseDrawer = () => { | ||
setIsSyncMethodDrawerOpen(false); | ||
reopenDrawer(); | ||
}; | ||
|
||
const openSyncMethodDrawer = () => { | ||
setIsSyncMethodDrawerOpen(true); | ||
handleClose(); | ||
}; | ||
|
||
return ( | ||
<> | ||
<TrackScreen /> | ||
<QueuedDrawer isRequestingToBeOpened={isOpen} onClose={handleClose}> | ||
<Activation isInsideDrawer openSyncMethodDrawer={openSyncMethodDrawer} /> | ||
</QueuedDrawer> | ||
|
||
<Drawer isOpen={isSyncMethodDrawerOpen} handleClose={onPressCloseDrawer} /> | ||
</> | ||
); | ||
}; | ||
|
||
export default ActivationDrawer; |
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
4499014
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] Testing with 'Nitrogen' ($0.00) ⏲ 4.00ms
Details of the 0 mutations
Portfolio ($0.00) – Details of the 0 currencies
Performance ⏲ 4.00ms
Time spent for each spec: (total across mutations)
4499014
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] Testing with 'Nitrogen' ($0.00) ⏲ 5ms
Details of the 0 mutations
Portfolio ($0.00) – Details of the 0 currencies
Performance ⏲ 5ms
Time spent for each spec: (total across mutations)