This repository has been archived by the owner on Jan 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Parse new "Waiting for deposit" log message
- Loading branch information
1 parent
519d4df
commit 8958403
Showing
8 changed files
with
57 additions
and
40 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
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
14 changes: 12 additions & 2 deletions
14
src/renderer/components/modal/swap/pages/in_progress/StartedPage.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 |
---|---|---|
@@ -1,5 +1,15 @@ | ||
import { SwapStateStarted } from 'models/storeModel'; | ||
import CircularProgressWithSubtitle from '../../CircularProgressWithSubtitle'; | ||
import { BitcoinAmount } from 'renderer/components/other/Units'; | ||
|
||
export default function StartedPage() { | ||
return <CircularProgressWithSubtitle description="Locking Bitcoin" />; | ||
export default function StartedPage({ state}: { state: SwapStateStarted }) { | ||
const description = state.txLockDetails ? ( | ||
<> | ||
Locking <BitcoinAmount amount={state.txLockDetails.amount} /> with a network fee of <BitcoinAmount amount={state.txLockDetails.fees} /> | ||
</> | ||
) : ( | ||
'Locking Bitcoin' | ||
); | ||
|
||
return <CircularProgressWithSubtitle description={description} />; | ||
} |
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