Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Style update + hide approve button for ETH. #2171

Merged
merged 2 commits into from
Jan 17, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
6 changes: 3 additions & 3 deletions src/custom/pages/Claim/InvestmentFlow/InvestOption.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default function InvestOption({ approveData, updateInvestAmount, claim }:
</i>
)}
{/* Approve button - @biocom styles for this found in ./styled > InputSummary > ${ButtonPrimary}*/}
{approveState !== ApprovalState.APPROVED && (
{approveData && approveState !== ApprovalState.APPROVED && (
<ButtonConfirmed
buttonSize={ButtonSize.SMALL}
onClick={handleApprove}
Expand All @@ -142,9 +142,9 @@ export default function InvestOption({ approveData, updateInvestAmount, claim }:
>
{approving || approveState === ApprovalState.PENDING ? (
<Loader stroke="white" />
) : (
) : approveData ? (
<span>Approve {currencyAmount?.currency?.symbol}</span>
)}
) : null}
</ButtonConfirmed>
)}
</span>
Expand Down
14 changes: 13 additions & 1 deletion src/custom/pages/Claim/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export const ClaimTable = styled.div`
border-collapse: collapse;
min-width: 100%;
font-size: 16px;
grid-template-columns: min-content auto max-content auto;
grid-template-columns: min-content auto auto auto;
}

thead,
Expand Down Expand Up @@ -666,6 +666,12 @@ export const ClaimBreakdown = styled.div`
display: flex;
width: 100%;
flex-flow: column wrap;

> h2 {
font-size: 28px;
font-weight: 500;
text-align: center;
}
`

export const FooterNavButtons = styled.div`
Expand Down Expand Up @@ -724,6 +730,12 @@ export const Demo = styled(ClaimTable)`
export const InvestFlow = styled.div`
display: flex;
flex-flow: column wrap;

h1 {
font-size: 28px;
font-weight: 500;
text-align: center;
}
`

export const InvestContent = styled.div`
Expand Down