-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: separated lockScreen from transactionForm
- Loading branch information
1 parent
9a1d031
commit a1c7e18
Showing
6 changed files
with
68 additions
and
83 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
30 changes: 30 additions & 0 deletions
30
src/app/components/mint-unmint/components/lock-screen/lock-screen.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,30 @@ | ||
import { Button, VStack } from "@chakra-ui/react"; | ||
import { VaultCard } from "@components/vault/vault-card"; | ||
import { VaultStatus } from "@models/vault"; | ||
|
||
import { exampleVaults } from "@shared/examples/example-vaults"; | ||
|
||
import { LockScreenProtocolFee } from "./components/protocol-fee"; | ||
|
||
export function LockScreen(): React.JSX.Element { | ||
const exampleVault = exampleVaults.find( | ||
(vault) => vault.state === VaultStatus.READY, | ||
); | ||
|
||
return ( | ||
<VStack w={"300px"} spacing={"15px"}> | ||
<VaultCard vault={exampleVault} isSelected /> | ||
<LockScreenProtocolFee assetAmount={exampleVault?.collateral} /> | ||
<Button | ||
variant={"account"} | ||
onClick={() => | ||
alert( | ||
"In production your Bitcoin Wallet would now open to confirm the transaction", | ||
) | ||
} | ||
> | ||
Lock BTC | ||
</Button> | ||
</VStack> | ||
); | ||
} |
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