Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions dapp/src/components/Header/ConnectWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ export default function ConnectWallet() {
return (
<Button
size="lg"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changing variant changes also the size which is not desirable.
It should be addressed in the theme so size props controls the size and variant props controls the appearance.

Let's enforce the height of old button as a workaround with the proper TODO comment.

Suggested change
size="lg"
size="lg"
{/* TODO: Revisit Buttons theme and separate appearance (variant) from the size */}
height="48px"

variant="card"
color="text.primary"
leftIcon={<Icon as={BitcoinIcon} boxSize={6} color="acre.50" />}
leftIcon={<Icon as={BitcoinIcon} boxSize={6} />}
onClick={() => handleConnectWallet(false)}
{...((modalType === MODAL_TYPES.CONNECT_WALLET ||
isOpenGlobalErrorModal) && {
Expand Down
Loading