diff --git a/frontend/components/buttons/BackButton.tsx b/frontend/components/buttons/BackButton.tsx index 71788f3f..c3f65796 100644 --- a/frontend/components/buttons/BackButton.tsx +++ b/frontend/components/buttons/BackButton.tsx @@ -4,12 +4,13 @@ import { Button } from './Button' export type BackButtonProps = { onBack: () => void disabled?: boolean + hideText?: boolean } -export function BackButton({ onBack, disabled }: BackButtonProps) { +export function BackButton({ onBack, disabled, hideText }: BackButtonProps) { return ( ) } diff --git a/frontend/components/buttons/Button.tsx b/frontend/components/buttons/Button.tsx index 9a866336..97ccc78d 100644 --- a/frontend/components/buttons/Button.tsx +++ b/frontend/components/buttons/Button.tsx @@ -18,7 +18,7 @@ export function Button({ onClick, type, disabled, children }: ButtonProps) { return ( ) diff --git a/frontend/components/buttons/RowLabelButton.tsx b/frontend/components/buttons/RowLabelButton.tsx index 2e47d599..b750300d 100644 --- a/frontend/components/buttons/RowLabelButton.tsx +++ b/frontend/components/buttons/RowLabelButton.tsx @@ -1,5 +1,4 @@ import Tooltip from '@images/tooltip-purple.inline.svg' -import { Button } from './Button' type RowLabelButtonProps = { onClick: () => void @@ -10,12 +9,13 @@ export function RowLabelButton({ onClick, label }: RowLabelButtonProps) { const windowWidth = window.innerWidth const mobile = windowWidth < 600 return ( - + + {label} + {/* We don't have much space on the mobile screen real estate so we have to choose not to show certain contents */} + {!mobile ? : null} + ) } diff --git a/frontend/components/modal/BreakdownModal.tsx b/frontend/components/modal/BreakdownModal.tsx index b4c7507d..ab35aa7b 100644 --- a/frontend/components/modal/BreakdownModal.tsx +++ b/frontend/components/modal/BreakdownModal.tsx @@ -25,7 +25,7 @@ export function BreakdownModal({
openModal(false)} /> -

+

{title}

@@ -33,14 +33,14 @@ export function BreakdownModal({ {info.map(({ label, icon, amount }) => { return ( - @@ -49,11 +49,11 @@ export function BreakdownModal({ })} - diff --git a/frontend/components/table/TotalAllocationRow.tsx b/frontend/components/table/TotalAllocationRow.tsx index 64784cde..49210b42 100644 --- a/frontend/components/table/TotalAllocationRow.tsx +++ b/frontend/components/table/TotalAllocationRow.tsx @@ -8,8 +8,8 @@ export function TotalAllocationRow({ }: TotalAllocationRowProps) { return ( - +
+ {icon} {label} - + {toStringWithDecimals(amount)}
+ {'Total'} - + {toStringWithDecimals( info.reduce( (prevValue, { amount }) => prevValue.add(amount), diff --git a/frontend/components/table/SignAndClaimRowLayout.tsx b/frontend/components/table/SignAndClaimRowLayout.tsx index ca06cc5b..f69332dc 100644 --- a/frontend/components/table/SignAndClaimRowLayout.tsx +++ b/frontend/components/table/SignAndClaimRowLayout.tsx @@ -3,10 +3,10 @@ import { EcosystemConnectButton } from '@components/EcosystemConnectButton' import { useCoins } from 'hooks/useCoins' import { useSignAndClaimRowState } from 'hooks/useSignAndClaimRowState' import { classNames } from 'utils/classNames' -import { getEcosystemTableLabel } from 'utils/getEcosystemTableLabel' import { CoinCell } from './CoinCell' import { Ecosystem } from '@components/Ecosystem' import { ReactNode } from 'react' +import { EcosystemRowLabel } from './EcosystemRowLabel' type SignAndClaimRowLayoutProps = { ecosystem: Ecosystem @@ -25,11 +25,13 @@ export function SignAndClaimRowLayout({ const { disabled: rowDisabled, tooltipContent: rowTooltipContent } = useSignAndClaimRowState(ecosystem) + const isMobile = window.innerWidth < 480 + return (
@@ -39,18 +41,19 @@ export function SignAndClaimRowLayout({ rowDisabled ? 'pointer-events-none' : '' )} > - - {getEcosystemTableLabel(ecosystem)} + + - - - - - - {children} + + {!isMobile && ( + + + + )} + {children}
-
+
+
Eligible Token Allocation diff --git a/frontend/components/wallets/WalletButton.tsx b/frontend/components/wallets/WalletButton.tsx index ebc282ce..f424afb4 100644 --- a/frontend/components/wallets/WalletButton.tsx +++ b/frontend/components/wallets/WalletButton.tsx @@ -111,7 +111,7 @@ export type WalletModalProps = { export function WalletModal({ openModal, wallets }: WalletModalProps) { return ( -

+

Connect Your Wallet

@@ -136,7 +136,7 @@ export type SingleWalletViewProps = { export function SingleWalletView({ wallet, onSelect }: SingleWalletViewProps) { return (
) } diff --git a/frontend/sections/TokensReceived.tsx b/frontend/sections/TokensReceived.tsx index 5547d05a..c73794b4 100644 --- a/frontend/sections/TokensReceived.tsx +++ b/frontend/sections/TokensReceived.tsx @@ -54,7 +54,7 @@ export const TokensReceived = ({ totalCoinsClaimed }: TokensReceivedProps) => {

diff --git a/frontend/sections/WalletsEligibility.tsx b/frontend/sections/WalletsEligibility.tsx index ed721a58..50262f2a 100644 --- a/frontend/sections/WalletsEligibility.tsx +++ b/frontend/sections/WalletsEligibility.tsx @@ -72,18 +72,24 @@ const Eligibility = ({ } }, [activity, getEcosystemIdentity, getEligibility]) + const windowWidth = window.innerWidth + const isMobile = windowWidth < 480 + + console.log(isMobile) + return (

Verify Eligibility

-
- +
+
diff --git a/frontend/styles/globals.css b/frontend/styles/globals.css index 9a5a7e45..a671def1 100644 --- a/frontend/styles/globals.css +++ b/frontend/styles/globals.css @@ -94,7 +94,7 @@ } .btn { - @apply relative inline-block h-[40px] px-4 font-body text-base transition-all sm:h-[44px] md:px-8; + @apply relative h-[36px] px-4 font-body text-base transition-all sm:h-[44px] md:px-8; } .btn-square {