Skip to content

Commit

Permalink
fix: use container color for button (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristiehuang authored Aug 9, 2022
1 parent d81c717 commit 062c2fb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/ConnectWallet/ConnectWalletDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const StyledButtonContents = styled(Column)`
`

const StyledMainButton = styled(Button)`
background-color: ${({ theme }) => theme.container};
border-radius: ${({ theme }) => theme.borderRadius * 0.75}em;
height: 200px;
padding: 22px;
Expand All @@ -50,7 +49,6 @@ const StyledMainButtonRow = styled(Row)`
`

const StyledSmallButton = styled(Button)`
background-color: ${({ theme }) => theme.container};
border-radius: ${({ theme }) => theme.borderRadius * 0.75}em;
height: 88px;
padding: 16px;
Expand Down Expand Up @@ -161,7 +159,7 @@ function WalletConnectButton({ walletName, logoSrc, connection: wcTileConnection
})

return (
<StyledMainButton onClick={onClick}>
<StyledMainButton color="container" onClick={onClick}>
<StyledMainButtonRow>
<ButtonContents
logoSrc={logoSrc}
Expand All @@ -176,15 +174,15 @@ function WalletConnectButton({ walletName, logoSrc, connection: wcTileConnection

function MetaMaskButton({ walletName, logoSrc, onClick }: ButtonProps) {
return (
<StyledSmallButton onClick={onClick}>
<StyledSmallButton color="container" onClick={onClick}>
<ButtonContents logoSrc={logoSrc} walletName={walletName} />
</StyledSmallButton>
)
}

function NoWalletButton() {
return (
<StyledSmallButton onClick={() => window.open(NO_WALLET_HELP_CENTER_URL)}>
<StyledSmallButton color="container" onClick={() => window.open(NO_WALLET_HELP_CENTER_URL)}>
<StyledNoWalletText>
<Trans>{`I don't have a wallet`}</Trans>
</StyledNoWalletText>
Expand Down

1 comment on commit 062c2fb

@vercel
Copy link

@vercel vercel bot commented on 062c2fb Aug 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

widgets – ./

widgets-seven-tau.vercel.app
widgets-uniswap.vercel.app
widgets-git-main-uniswap.vercel.app

Please sign in to comment.