Skip to content

Commit

Permalink
removed read more
Browse files Browse the repository at this point in the history
  • Loading branch information
cjinghong committed May 3, 2024
1 parent abf5afc commit 83d9f9e
Showing 1 changed file with 3 additions and 29 deletions.
32 changes: 3 additions & 29 deletions governance/src/components/Wallet/Airdrop/AirdropInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -185,21 +184,6 @@ const AirdropInfo: React.FC<AirdropInfoProps> = ({
[]
);

const readMore = useMemo(
() => (
<LearnMoreLink
// TODO: - Learn more link
to="#"
target="_blank"
rel="noreferrer noopener"
>
<PrimaryText>Learn More</PrimaryText>
<LearnMoreIcon height="20px" width="20px" color="white" />
</LearnMoreLink>
),
[]
);

const renderInfo = useCallback(() => {
if (!account) {
return (
Expand All @@ -219,9 +203,6 @@ const AirdropInfo: React.FC<AirdropInfoProps> = ({
</Description>
</BaseModalContentColumn>
<BaseModalContentColumn marginTop="auto">
{readMore}
</BaseModalContentColumn>
<BaseModalContentColumn>
<ConnectWalletButton
onClick={() => setShowConnectModal(true)}
type="button"
Expand Down Expand Up @@ -265,9 +246,6 @@ const AirdropInfo: React.FC<AirdropInfoProps> = ({
</ViewBreakdownPill>
</BaseModalContentColumn>
<BaseModalContentColumn marginTop="auto">
{readMore}
</BaseModalContentColumn>
<BaseModalContentColumn>
<ActionButton
className="btn py-3 mb-2"
onClick={onClaim}
Expand All @@ -287,7 +265,6 @@ const AirdropInfo: React.FC<AirdropInfoProps> = ({
airdropAmountStr,
onClaim,
airdropInfo,
readMore,
]);

const renderBreakdown = useCallback(
Expand All @@ -308,9 +285,6 @@ const AirdropInfo: React.FC<AirdropInfoProps> = ({
<BaseModalContentColumn>
<AirdropBreakdown breakdown={airdropInfo?.breakdown} />
</BaseModalContentColumn>
<BaseModalContentColumn marginTop="auto">
{readMore}
</BaseModalContentColumn>
<HideBreakdownButton
role="button"
onClick={() => setShowBreakdown(false)}
Expand All @@ -319,7 +293,7 @@ const AirdropInfo: React.FC<AirdropInfoProps> = ({
</HideBreakdownButton>
</>
),
[airdropInfo, airdropAmountStr, readMore]
[airdropInfo, airdropAmountStr]
);

return (
Expand Down

0 comments on commit 83d9f9e

Please sign in to comment.