From 83d9f9e2900f3a299bae821af55cfba5f4a7368e Mon Sep 17 00:00:00 2001 From: Chan Jing Hong Date: Fri, 3 May 2024 16:01:26 +0800 Subject: [PATCH] removed read more --- .../components/Wallet/Airdrop/AirdropInfo.tsx | 32 ++----------------- 1 file changed, 3 insertions(+), 29 deletions(-) diff --git a/governance/src/components/Wallet/Airdrop/AirdropInfo.tsx b/governance/src/components/Wallet/Airdrop/AirdropInfo.tsx index 0a07a3c0..1bc3508b 100644 --- a/governance/src/components/Wallet/Airdrop/AirdropInfo.tsx +++ b/governance/src/components/Wallet/Airdrop/AirdropInfo.tsx @@ -10,19 +10,18 @@ import { import { BaseLink, BaseModalContentColumn, - PrimaryText, SecondaryText, Subtitle, - Title, + Title } from "shared/lib/designSystem"; import colors from "shared/lib/designSystem/colors"; import theme from "shared/lib/designSystem/theme"; import useConnectWalletModal from "shared/lib/hooks/useConnectWalletModal"; +import useLoadingText from "shared/lib/hooks/useLoadingText"; import { useWeb3Wallet } from "shared/lib/hooks/useWeb3Wallet"; import { GovernanceAirdropInfoData } from "shared/lib/store/types"; import styled, { keyframes } from "styled-components"; import AirdropBreakdown from "./AirdropBreakdown"; -import useLoadingText from "shared/lib/hooks/useLoadingText"; const rotate = keyframes` from { @@ -185,21 +184,6 @@ const AirdropInfo: React.FC = ({ [] ); - const readMore = useMemo( - () => ( - - Learn More - - - ), - [] - ); - const renderInfo = useCallback(() => { if (!account) { return ( @@ -219,9 +203,6 @@ const AirdropInfo: React.FC = ({ - {readMore} - - setShowConnectModal(true)} type="button" @@ -265,9 +246,6 @@ const AirdropInfo: React.FC = ({ - {readMore} - - = ({ airdropAmountStr, onClaim, airdropInfo, - readMore, ]); const renderBreakdown = useCallback( @@ -308,9 +285,6 @@ const AirdropInfo: React.FC = ({ - - {readMore} - setShowBreakdown(false)} @@ -319,7 +293,7 @@ const AirdropInfo: React.FC = ({ ), - [airdropInfo, airdropAmountStr, readMore] + [airdropInfo, airdropAmountStr] ); return (