Skip to content

Commit

Permalink
update Wallet not accessible component
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor-Salomon committed Aug 15, 2024
1 parent af110ee commit acab261
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 43 deletions.
2 changes: 1 addition & 1 deletion app/src/components/ChainSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const ChainSelect = forwardRef<HTMLDivElement, ChainSelectProps>(
</>
)}
</div>
{trailing && <div className="absolute right-0 z-[60] ml-2 mr-3">{trailing}</div>}
{trailing && <div className="absolute right-0 ml-2 mr-3">{trailing}</div>}
</div>
</Tooltip>

Expand Down
72 changes: 30 additions & 42 deletions app/src/components/WalletNotAccessible.tsx
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>
)
}

0 comments on commit acab261

Please sign in to comment.