Skip to content

Commit

Permalink
hotfix(sidenav): remove new tag from pit link
Browse files Browse the repository at this point in the history
  • Loading branch information
schnogz committed Oct 28, 2019
1 parent 49d9fb5 commit b961e6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
Expand Up @@ -20,7 +20,7 @@ import { JoyrideSpotlight, SpotlightLinkContainer } from 'components/Tour'
import ThePitLink from '../ThePitLink'

const HelperTipContainer = styled.div`
margin-left: 74px;
margin-left: auto;
> div span {
color: ${props => props.theme['gray-3']};
}
Expand Down Expand Up @@ -92,7 +92,7 @@ const Navigation = props => {
style={{ paddingLeft: '2px' }}
size='24px'
/>
<Destination style={{ paddingLeft: '8px' }}>
<Destination>
<FormattedMessage
id='layouts.wallet.menuleft.navigation.hardware'
defaultMessage='Hardware'
Expand Down
Expand Up @@ -3,12 +3,7 @@ import styled from 'styled-components'
import { FormattedMessage } from 'react-intl'
import Joyride from 'react-joyride/lib'

import {
Link,
Text,
TooltipIcon,
TooltipHost
} from 'blockchain-info-components'
import { Link, TooltipIcon, TooltipHost } from 'blockchain-info-components'
import { Destination, MenuIcon, MenuItem } from 'components/MenuLeft'
import {
JoyrideSpotlight,
Expand All @@ -20,7 +15,6 @@ import {
} from 'components/Tour'

import PitTooltip from './PitTooltip'
import { NewCartridge } from '../Navigation/template'

const HelperTipContainer = styled.div`
margin-left: auto;
Expand All @@ -33,27 +27,18 @@ const ThePitSidenavItem = (showSpotlight, isPitAccountLinked) => (
<>
<JoyrideSpotlight className='the-pit-tooltip' />
<MenuIcon name='the-pit' style={{ paddingLeft: '2px' }} size='24px' />
<Destination style={{ marginLeft: '4px' }}>
<Destination>
<FormattedMessage
id='layouts.wallet.menuleft.navigation.thepitexchange'
defaultMessage='The PIT Exchange'
/>
</Destination>
{isPitAccountLinked ? (
{isPitAccountLinked && (
<HelperTipContainer>
<TooltipHost id='pitSideNavConnected'>
<TooltipIcon color='blue' name='info' />
</TooltipHost>
</HelperTipContainer>
) : (
<NewCartridge style={{ marginLeft: '10px' }}>
<Text color='orange' size='12' weight={500} uppercase>
<FormattedMessage
id='layouts.wallet.menuleft.navigation.transactions.new'
defaultMessage='New'
/>
</Text>
</NewCartridge>
)}
</>
)
Expand Down

0 comments on commit b961e6d

Please sign in to comment.