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

Commit

Permalink
Misc. styling and remove desc. on steps. (#2336)
Browse files Browse the repository at this point in the history
  • Loading branch information
fairlighteth authored Jan 27, 2022
1 parent 783ada1 commit b7e1425
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/custom/pages/Claim/EligibleBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useClaimState } from 'state/claim/hooks'
import { EligibleBanner as EligibleBannerWrapper } from './styled'
import CheckCircle from 'assets/cow-swap/check.svg'
import { ClaimStatus } from 'state/claim/actions'
import SVG from 'react-inlinesvg'

export default function EligibleBanner({ hasClaims }: { hasClaims: boolean }) {
const { claimStatus, activeClaimAccount, isInvestFlowActive } = useClaimState()
Expand All @@ -13,7 +14,7 @@ export default function EligibleBanner({ hasClaims }: { hasClaims: boolean }) {

return (
<EligibleBannerWrapper>
<img src={CheckCircle} alt="eligible" />
<SVG src={CheckCircle} description="eligible" />
<Trans>This account is eligible for vCOW token claims!</Trans>
</EligibleBannerWrapper>
)
Expand Down
6 changes: 2 additions & 4 deletions src/custom/pages/Claim/InvestmentFlow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,10 @@ const STEPS_DATA = [
title: 'Start',
},
{
title: 'Set allowances',
subtitle: 'Approve all tokens to be used for investment.',
title: 'Select amount(s)',
},
{
title: 'Submit claim',
subtitle: 'Submit and confirm the transaction to claim vCOW.',
title: 'Review & submit',
},
]

Expand Down
10 changes: 8 additions & 2 deletions src/custom/pages/Claim/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ p > i {
p > a {
display: inline;
color: ${({ theme }) => darken(0.1, theme.primary1)};
}
${ButtonPrimary} {
Expand Down Expand Up @@ -710,19 +711,24 @@ export const EligibleBanner = styled.div`
justify-content: center;
align-items: center;
background: ${({ theme }) => transparentize(0.9, theme.attention)};
color: ${({ theme }) => theme.attention};
color: ${({ theme }) => darken(0.1, theme.attention)};
margin: 0 auto 16px;
font-weight: 600;
${({ theme }) => theme.mediaWidth.upToSmall`
text-align: left;
padding: 18px;
`}
> img {
> svg {
margin: 0 6px 0 0;
width: 21px;
height: 21px;
> path {
fill: ${({ theme }) => darken(0.1, theme.attention)};
}
${({ theme }) => theme.mediaWidth.upToSmall`
margin: 0 12px 0 6px;
`}
Expand Down

0 comments on commit b7e1425

Please sign in to comment.