-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
127 additions
and
27 deletions.
There are no files selected for viewing
31 changes: 19 additions & 12 deletions
31
src/app/components/Staking/Form/States/WalletNotConnected.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,28 +1,35 @@ | ||
import { Button, Heading, Text } from "@babylonlabs-io/bbn-core-ui"; | ||
import Image from "next/image"; | ||
|
||
import { useBTCWallet } from "@/app/context/wallet/BTCWalletProvider"; | ||
|
||
import connectIcon from "./connect-icon.svg"; | ||
import walletIcon from "./wallet-icon.svg"; | ||
|
||
export const WalletNotConnected = () => { | ||
const { open } = useBTCWallet(); | ||
|
||
return ( | ||
<div className="flex flex-1 flex-col"> | ||
<div className="flex flex-1 flex-col items-center justify-center gap-2 py-12"> | ||
<div className="rounded-full bg-base-200 p-4"> | ||
<Image src={walletIcon} alt="Wallet" width={32} height={32} /> | ||
<div className="flex flex-1 flex-col items-center justify-center gap-8"> | ||
<div className="rotate-12"> | ||
<Image src={walletIcon} alt="Wallet" width={120} height={122} /> | ||
</div> | ||
<h3 className="font-bold">Connect wallet</h3> | ||
<p className="text-center text-sm font-light dark:text-neutral-content"> | ||
Please connect wallet to start staking | ||
</p> | ||
<div className="flex flex-col gap-2 justify-center items-center self-stretch"> | ||
<Heading variant="h5" className="text-primary-dark text-2xl"> | ||
Connect wallet to start staking | ||
</Heading> | ||
<Text | ||
variant="body1" | ||
className="text-center text-base text-primary-light p-0" | ||
> | ||
To start staking your BTC first connect wallets then select a | ||
Finality Provider | ||
</Text> | ||
</div> | ||
<Button variant="outlined" onClick={open} className="text-primary-dark"> | ||
Connect wallet | ||
</Button> | ||
</div> | ||
<button className="btn-primary btn" onClick={open}> | ||
<Image src={connectIcon} alt="Connect wallet" /> | ||
Connect wallet | ||
</button> | ||
</div> | ||
); | ||
}; |
116 changes: 105 additions & 11 deletions
116
src/app/components/Staking/Form/States/wallet-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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