1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-15 21:08:57 +00:00

Merge pull request #436 from trezor/fix/remove-you-will-be-redirected

Fix/Remove "you will be redirected" from coins menu
This commit is contained in:
Vladimir Volek 2019-03-06 16:07:27 +01:00 committed by GitHub
commit 90a6e7e158
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 6 deletions

View File

@ -89,7 +89,6 @@ class CoinMenu extends PureComponent<Props> {
<Divider
testId="Main__page__coin__menu__divider"
textLeft={<FormattedMessage {...l10nMessages.TR_OTHER_COINS} />}
textRight={<FormattedMessage {...l10nMessages.TR_YOU_WILL_BE_REDIRECTED} />}
hasBorder
/>
{this.getOtherCoins()}

View File

@ -7,10 +7,6 @@ const definedMessages: Messages = defineMessages({
id: 'TR_OTHER_COINS',
defaultMessage: 'Other coins',
},
TR_YOU_WILL_BE_REDIRECTED: {
id: 'TR_YOU_WILL_BE_REDIRECTED',
defaultMessage: '(You will be redirected)',
},
});
export default definedMessages;

View File

@ -27,7 +27,7 @@ const TextLeft = styled.p`
const Divider = ({ textLeft, textRight, hasBorder = false, className, testId }) => (
<Wrapper data-test={testId} hasBorder={hasBorder} className={className}>
<TextLeft>{textLeft}</TextLeft>
<p>{textRight}</p>
{textRight && <p>{textRight}</p>}
</Wrapper>
);