Skip to content

Commit

Permalink
Lottery - UI fixes (pancakeswap#36)
Browse files Browse the repository at this point in the history
* Bring back relative claim prizes on all stages

* More text on buy modal
  • Loading branch information
mustard-cake authored Oct 22, 2020
1 parent e1eb4ae commit 919de91
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/Lottery/Lottery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ const Farm: React.FC = () => {
<Subtitle>{subtitleText}</Subtitle>
<StyledFarm>
<StyledCardWrapper>
{state === LotteryStates.WINNERS_ANNOUNCED && <Prize/>}
<Prize/>
<Ticket/>
</StyledCardWrapper>
</StyledFarm>
<Time></Time>
{ state === LotteryStates.WINNERS_ANNOUNCED && <Winning></Winning>}
{state === LotteryStates.WINNERS_ANNOUNCED && <Winning></Winning>}
</Page>
)
}
Expand Down
6 changes: 6 additions & 0 deletions src/views/Lottery/components/buyModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const BuyModal: React.FC<BuyModalProps> = ({
<Tips>1 Ticket = 10 CAKE</Tips>
</div>
<div>
<Announce>Ticket purchases are final. Your CAKE cannot be returned to you after buying tickets.</Announce>
<Final>You will spend: {cakeCosts(val)} CAKE</Final>
</div>
<ModalActions>
Expand Down Expand Up @@ -112,3 +113,8 @@ const Final = styled.div`
font-weight: 600;
color: ${props => props.theme.colors.primary};
`
const Announce = styled.div`
margin-top: 1em;
margin-left: 0.4em;
color: #ED4B9E;
`

0 comments on commit 919de91

Please sign in to comment.