Skip to content

Commit

Permalink
fix: styling
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaccoSordo committed Nov 29, 2024
1 parent 22779d7 commit 811fd76
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 33 deletions.
64 changes: 33 additions & 31 deletions packages/beacon-ui/src/components/top-wallets/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,32 @@ const TopWallets: React.FC<TopWalletsProps> = (props: TopWalletsProps) => {
const enableBugReport = localStorage ? localStorage.getItem(StorageKey.ENABLE_METRICS) : 'false'

return (
<div className="top-wallets-wrapper">
<div className="top-wallets-info">
<h3>Connect Wallet</h3>
{enableBugReport === 'true' ? (
<span>
Do you wish to report a bug?{' '}
<span className="top-wallets-learn-more" onClick={props.onClickLearnMore}>
Click here
</span>
<Grid2 container justifyContent={'center'} alignItems={'center'} flexDirection={'column'}>
<h3>Connect Wallet</h3>
{enableBugReport === 'true' ? (
<span>
Do you wish to report a bug?{' '}
<span
style={{ color: 'blue', textDecoration: 'underline', cursor: 'pointer' }}
onClick={props.onClickLearnMore}
>
Click here
</span>
) : (
<span>
If you don't have a wallet, you can select a provider and create one now.{' '}
<span className="top-wallets-learn-more" onClick={props.onClickLearnMore}>
Learn more
</span>
</span>
)}
</div>
<Grid2 container rowSpacing={1} columnSpacing={{ xs: 1, sm: 2, md: 3 }} padding={'10px'}>
</span>
) : (
<span>
If you don't have a wallet, you can select a provider and create one now.{' '}
<span onClick={props.onClickLearnMore}>Learn more</span>
</span>
)}
<Grid2
container
justifyContent={'center'}
alignItems={'center'}
rowSpacing={1}
gap={0}
columnSpacing={1}
>
{props.wallets.map((wallet) => (
<Wallet
key={wallet.id}
Expand All @@ -49,24 +55,20 @@ const TopWallets: React.FC<TopWalletsProps> = (props: TopWalletsProps) => {
/>
))}
{props.otherWallets && (
<div className="top-wallets-other-wallets" onClick={props.otherWallets.onClick}>
<div className="top-wallets-other-wallets-left">
<Grid2 container onClick={props.otherWallets.onClick}>
<Grid2 container>
<h3>Other Wallets</h3>
<p>See other wallets you can use to connect</p>
</div>
<div className="top-wallets-other-wallets-right">
</Grid2>
<Grid2 container>
<img src={props.otherWallets.images[0]} alt="Other Wallet 1" />
<img
className="top-wallets-other-wallets-center-wallet"
src={props.otherWallets.images[1]}
alt="Other Wallet 2"
/>
<img src={props.otherWallets.images[1]} alt="Other Wallet 2" />
<img src={props.otherWallets.images[2]} alt="Other Wallet 3" />
</div>
</div>
</Grid2>
</Grid2>
)}
</Grid2>
</div>
</Grid2>
)
}

Expand Down
2 changes: 1 addition & 1 deletion packages/beacon-ui/src/components/wallet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface WalletProps {

const Wallet: React.FC<WalletProps> = (props: WalletProps) => {
return (
<Grid2 size={props.small ? undefined : 6} alignSelf={'baseline'}>
<Grid2 size={props.small ? undefined : 6} alignSelf={'baseline'} padding={'5px'}>
<Button
variant="outlined"
onClick={props.onClick}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ const PairingAlert: React.FC<React.PropsWithChildren<AlertConfig>> = (props) =>
wallets={isMobile ? walletList.slice(0, 3) : walletList.slice(0, 4)}
isMobile={isMobile}
onClickWallet={(id) => handleClickWallet(id, props)}
onClickLearnMore={() => {}}
onClickLearnMore={() => handleUpdateState('help')}
otherWallets={
isMobile
? {
Expand Down

0 comments on commit 811fd76

Please sign in to comment.