From fd4673719b73793015f158402a24b5319f5b65f9 Mon Sep 17 00:00:00 2001 From: Kristof Csillag Date: Tue, 29 Oct 2024 12:42:48 +0100 Subject: [PATCH] Adjust button sizes again --- .../src/components/ConnectWallet/index.module.css | 2 +- frontend/src/components/ConnectWallet/index.tsx | 11 +++++------ frontend/src/pages/LandingPage/index.tsx | 7 +++---- frontend/src/pages/PollPage/ActivePoll.tsx | 4 +--- 4 files changed, 10 insertions(+), 14 deletions(-) diff --git a/frontend/src/components/ConnectWallet/index.module.css b/frontend/src/components/ConnectWallet/index.module.css index 98e33b4..0db672a 100644 --- a/frontend/src/components/ConnectWallet/index.module.css +++ b/frontend/src/components/ConnectWallet/index.module.css @@ -1,5 +1,5 @@ .connectWalletBtn { - height: 3.75rem; + height: 48px } @media screen and (max-width: 1000px) { diff --git a/frontend/src/components/ConnectWallet/index.tsx b/frontend/src/components/ConnectWallet/index.tsx index 49ee4fa..2420c81 100644 --- a/frontend/src/components/ConnectWallet/index.tsx +++ b/frontend/src/components/ConnectWallet/index.tsx @@ -1,6 +1,6 @@ import { FC, useState } from 'react' import { METAMASK_HOME_PAGE_URL } from '../../constants/config' -import { Button, ButtonSize } from '../Button' +import { Button } from '../Button' import { UnknownNetworkError } from '../../utils/errors' import { ConnectedAccount } from '../ConnectedAccount' @@ -10,10 +10,9 @@ import { useEthereum } from '../../hooks/useEthereum' interface Props { mobileSticky: boolean avoidButtonClasses?: boolean - buttonSize?: ButtonSize } -export const ConnectWallet: FC = ({ mobileSticky, avoidButtonClasses = false, buttonSize }) => { +export const ConnectWallet: FC = ({ mobileSticky, avoidButtonClasses = false }) => { const [isLoading, setIsLoading] = useState(false) const { @@ -70,7 +69,7 @@ export const ConnectWallet: FC = ({ mobileSticky, avoidButtonClasses = fa className={avoidButtonClasses ? undefined : classes.connectWalletBtn} color={'primary'} disabled={isLoading} - size={buttonSize} + size={'medium'} > Install MetaMask @@ -80,7 +79,7 @@ export const ConnectWallet: FC = ({ mobileSticky, avoidButtonClasses = fa - + diff --git a/frontend/src/pages/PollPage/ActivePoll.tsx b/frontend/src/pages/PollPage/ActivePoll.tsx index 96ed77b..e813ad0 100644 --- a/frontend/src/pages/PollPage/ActivePoll.tsx +++ b/frontend/src/pages/PollPage/ActivePoll.tsx @@ -160,9 +160,7 @@ export const ActivePoll: FC = ({ fields={[[gaslessLabel, voteAction, completePoll, destroyPoll]]} expandHorizontally={false} /> - {!hasWallet && !isPastDue && ( - - )} + {!hasWallet && !isPastDue && } {isMine && gaslessEnabled && hasWallet && (

Gasless voting enabled: