-
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.
Merge pull request #6 from DLC-link/feat/unmint
feat: added unmint flow
- Loading branch information
Showing
48 changed files
with
809 additions
and
557 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
import { ReactNode } from "react"; | ||
|
||
import { Skeleton } from "@chakra-ui/react"; | ||
|
||
interface CustomSkeletonProps { | ||
children: ReactNode; | ||
isLoaded: boolean; | ||
height: string; | ||
} | ||
|
||
export function CustomSkeleton({ | ||
children, | ||
isLoaded, | ||
height, | ||
}: CustomSkeletonProps): React.JSX.Element { | ||
return ( | ||
<Skeleton | ||
startColor={"white.02"} | ||
endColor={"white.03"} | ||
isLoaded={isLoaded} | ||
w={"100%"} | ||
> | ||
{children} | ||
</Skeleton> | ||
h={height} | ||
/> | ||
); | ||
} |
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> | ||
); | ||
} |
39 changes: 0 additions & 39 deletions
39
src/app/components/mint-unmint/components/mint/components/video.tsx
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/app/components/mint-unmint/components/progress-timeline/progress-timeline.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
6 changes: 3 additions & 3 deletions
6
...n-stack/components/wallet-requirement.tsx → .../setup-information-wallet-requirement.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
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
13 changes: 6 additions & 7 deletions
13
...s/transaction-form/components/warning.tsx → ...m/components/transaction-form-warning.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
Oops, something went wrong.