Skip to content

Commit

Permalink
feat(interest): changed colors and added alert icon
Browse files Browse the repository at this point in the history
  • Loading branch information
milan-bc committed May 7, 2021
1 parent c8a1942 commit 4998f2b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions packages/blockchain-info-components/src/Images/Images.ts
Expand Up @@ -5,6 +5,7 @@ import airdropWelcome from './img/airdrop-welcome.png'
import airdropWelcome2 from './img/airdrop-welcome@2x.png'
import airdropWelcomeBanner from './img/airdrop-welcome-banner.png'
import airdropWelcomeBanner2 from './img/airdrop-welcome-banner@2x.png'
import alert from './img/alert.svg'
import allowCamera from './img/allow-camera.png'
import allowCamera2 from './img/allow-camera@2x.png'
import allowCamera3 from './img/allow-camera@3x.png'
Expand Down Expand Up @@ -150,6 +151,7 @@ import yubikey from './img/yubikey.svg'

const Images = {
...coins,
alert: alert,
'bank-logo-acorns': bankLogoAcorns,
'ad-bitcoin-games': adBitcoinGames,
'ad-bitcoin-games2': adBitcoinGames2,
Expand Down
3 changes: 3 additions & 0 deletions packages/blockchain-info-components/src/Images/img/alert.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Expand Up @@ -4,7 +4,7 @@ import { connect, ConnectedProps } from 'react-redux'
import { bindActionCreators } from 'redux'
import styled from 'styled-components'

import { Button, Icon, Link, Text } from 'blockchain-info-components'
import { Button, Icon, Image, Link, Text } from 'blockchain-info-components'
import { Box } from 'components/Box'
import { actions, model, selectors } from 'data'

Expand Down Expand Up @@ -52,7 +52,7 @@ class IntroCard extends PureComponent<
<BoxStyledAdditional>
<ContentWrapper>
<IconWrapper>
<Icon color='blue600' name='percentage' size='32px' />
<Image name='alert' width='32px' />
</IconWrapper>
<Text
size='20px'
Expand Down Expand Up @@ -84,7 +84,7 @@ class IntroCard extends PureComponent<
<Button
data-e2e='earnInterestSupplyInformation'
fullwidth
nature='light'
nature='dark-grey'
onClick={() =>
analyticsActions.logEvent(
INTEREST_EVENTS.HOME.CLICK_SUPPORT_ARTICLE
Expand Down
Expand Up @@ -49,6 +49,7 @@ class Interest extends React.PureComponent<Props, StateType> {
this.props.interestActions.fetchInterestInstruments()
this.props.interestActions.fetchInterestRate()
this.props.interestActions.fetchInterestBalance()
this.props.interestActions.fetchEDDStatus()
}

componentDidUpdate(prevProps: Props) {
Expand Down

0 comments on commit 4998f2b

Please sign in to comment.