-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update Wallet not accessible component
- Loading branch information
1 parent
af110ee
commit acab261
Showing
2 changed files
with
31 additions
and
43 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,53 +1,41 @@ | ||
import { cn } from '@/utils/cn' | ||
import Image from 'next/image' | ||
import { useState } from 'react' | ||
|
||
export const WalletNotAccessible = () => { | ||
const [displayWalletNote, setDisplayWalletNote] = useState<boolean>(true) | ||
return ( | ||
displayWalletNote && ( | ||
<div className={cn('-mt-8 rounded-[20px] bg-turtle-secondary-light p-3 lg:hidden')}> | ||
<div className="justify-items flex flex-row items-center"> | ||
<Image src={'/wallet.svg'} alt={'Wallet illustration'} width={64} height={64} /> | ||
<div className="justify-left ml-3 flex flex-col"> | ||
<div className="text-left text-small font-bold text-turtle-foreground"> | ||
Connection information | ||
</div> | ||
<div className="flex flex-col items-start pb-2 text-small text-turtle-foreground"> | ||
<p> | ||
Your wallet might not be fully supported on mobile yet. Connect on desktop or use a | ||
wallet partner like{' '} | ||
<a | ||
href="https://novawallet.io/" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="cursor-pointer font-medium" | ||
> | ||
Nova Wallet | ||
</a>{' '} | ||
or{' '} | ||
<a | ||
href="https://www.subwallet.app/" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="cursor-pointer font-medium" | ||
> | ||
SubWallet | ||
</a> | ||
</p> | ||
|
||
<button | ||
className={cn(' text-turtle-foreground underline')} | ||
onClick={() => { | ||
setDisplayWalletNote(!displayWalletNote) | ||
}} | ||
<div className={cn('-mt-8 rounded-[20px] bg-turtle-secondary-light p-3 lg:hidden')}> | ||
<div className="justify-items flex flex-row items-center"> | ||
<Image src={'/wallet.svg'} alt={'Wallet illustration'} width={64} height={64} /> | ||
<div className="justify-left ml-3 flex flex-col"> | ||
<div className="text-left text-small font-bold text-turtle-foreground"> | ||
Connection information | ||
</div> | ||
<div className="flex flex-col items-start pb-2 text-small text-turtle-foreground"> | ||
<p> | ||
Your wallet might not be fully supported on mobile yet. Connect on desktop or use a | ||
wallet partner like{' '} | ||
<a | ||
href="https://novawallet.io/" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="cursor-pointer underline" | ||
> | ||
Nova Wallet | ||
</a>{' '} | ||
or{' '} | ||
<a | ||
href="https://www.subwallet.app/" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="cursor-pointer underline" | ||
> | ||
Dismiss | ||
</button> | ||
</div> | ||
SubWallet | ||
</a> | ||
. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
</div> | ||
) | ||
} |