diff --git a/src/custom/assets/cow-swap/check.svg b/src/custom/assets/cow-swap/check.svg new file mode 100644 index 000000000..00ef30537 --- /dev/null +++ b/src/custom/assets/cow-swap/check.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/custom/assets/cow-swap/gno.png b/src/custom/assets/cow-swap/gno.png new file mode 100644 index 000000000..94c61d6ef Binary files /dev/null and b/src/custom/assets/cow-swap/gno.png differ diff --git a/src/custom/assets/cow-swap/usdc.png b/src/custom/assets/cow-swap/usdc.png new file mode 100644 index 000000000..ae30bd6bc Binary files /dev/null and b/src/custom/assets/cow-swap/usdc.png differ diff --git a/src/custom/pages/Claim/ClaimsTable.tsx b/src/custom/pages/Claim/ClaimsTable.tsx index c0f1172ca..19abf9128 100644 --- a/src/custom/pages/Claim/ClaimsTable.tsx +++ b/src/custom/pages/Claim/ClaimsTable.tsx @@ -85,10 +85,12 @@ const ClaimsTableRow = ({ {formatSmart(claimAmount) || 0} vCOW - - Price:{' '} - {isFree || !price ? '-' : `${formatSmart(price) || 0} vCoW per ${currencyAmount?.currency?.symbol}`} - + {!isFree || + (price && ( + + Price: {`${formatSmart(price) || 0} vCoW per ${currencyAmount?.currency?.symbol}`} + + ))} Cost:{' '} diff --git a/src/custom/pages/Claim/InvestmentFlow/InvestOption.tsx b/src/custom/pages/Claim/InvestmentFlow/InvestOption.tsx index 0e358ae65..0a67677df 100644 --- a/src/custom/pages/Claim/InvestmentFlow/InvestOption.tsx +++ b/src/custom/pages/Claim/InvestmentFlow/InvestOption.tsx @@ -7,7 +7,7 @@ import { Currency, CurrencyAmount, Fraction } from '@uniswap/sdk-core' import { InvestTokenGroup, TokenLogo, InvestSummary, InvestInput, InvestAvailableBar } from '../styled' import { formatSmart } from 'utils/format' import Row from 'components/Row' -import { CheckCircle } from 'react-feather' +import CheckCircle from 'assets/cow-swap/check.svg' import { InvestOptionProps } from '.' import { ApprovalState } from 'hooks/useApproveCallback' import { useCurrencyBalance } from 'state/wallet/hooks' @@ -153,15 +153,16 @@ export default function InvestOption({ approveData, claim, optionIndex }: Invest `${currencyAmount?.currency?.symbol} not approved` ) : ( - {currencyAmount?.currency?.symbol} approved{' '} - + {currencyAmount?.currency?.symbol} approved + Approved )} ) : ( - Approval not required! + Approval not required! + Approved )} @@ -195,7 +196,6 @@ export default function InvestOption({ approveData, claim, optionIndex }: Invest ))} - @@ -205,15 +205,15 @@ export default function InvestOption({ approveData, claim, optionIndex }: Invest {/* Investment inputs */}
- - Balance: - - {formatSmart(balance) || 0} {currencyAmount?.currency?.symbol} - - {/* Button should use the max possible amount the user can invest, considering their balance + max investment allowed */} - -