Skip to content

Commit

Permalink
fix(Template): assign link component to variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Welber committed Jul 7, 2018
1 parent d973566 commit 79dc10c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ const Container = styled.div`
}
`

const link = <Link href='https://support.blockchain.com/hc/en-us/requests/new' target='_blank' size='16px' weight={300}><FormattedMessage id='buysell.general.failure.here' defaultMessage='here.' /></Link>

const Loading = (e) => (
<Container>
<Text weight={300} size='16px'>
<FormattedMessage id='buysell.general.failure.message' defaultMessage='Sorry, an error has occurred while connecting to your exchange partner.' />
</Text>
<Text weight={300} size='16px'>
<FormattedMessage id='buysell.general.failure.message2' defaultMessage='If the problem continues, please reach out to our support team {supportLink}' values={{ supportLink: <Link href='https://support.blockchain.com/hc/en-us/requests/new' target='_blank' size='16px' weight={300}><FormattedMessage id='buysell.general.failure.here' defaultMessage='here.' /></Link> }} />
<FormattedMessage id='buysell.general.failure.message2' defaultMessage='If the problem continues, please reach out to our support team {supportLink}' values={{ supportLink: link }} />
</Text>
<Text weight={300} size='14px'>
<FormattedMessage id='buysell.general.failure.message3' defaultMessage='Error code: {err}' values={{ err: path(['error', 'message'], e) }} />
Expand Down

0 comments on commit 79dc10c

Please sign in to comment.