Skip to content

Commit

Permalink
fix(balances): add transact dropdown on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip London committed May 29, 2020
1 parent b415265 commit b4392bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import PropTypes from 'prop-types'
import React from 'react'
import styled from 'styled-components'

Expand All @@ -17,10 +16,6 @@ const NavbarMenu = props => {
return <BaseMenu {...rest}>{children}</BaseMenu>
}

NavbarMenu.propTypes = {
toggled: PropTypes.bool
}

NavbarMenu.defaultProps = {
toggled: false
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FormattedMessage } from 'react-intl'
import { Icon } from 'blockchain-info-components'
import { LinkContainer } from 'react-router-bootstrap'
import React, { useRef, useState } from 'react'

Expand Down Expand Up @@ -38,6 +39,11 @@ const FeaturesSmall = (
<NavbarNavItemTextHeader persist color='alwaysWhite'>
<FormattedMessage id='buttons.transact' defaultMessage='Transact' />
</NavbarNavItemTextHeader>
<Icon
name={isMenuOpen ? 'chevron-up' : 'chevron-down'}
size='24px'
color='alwaysWhite'
/>
{isMenuOpen && (
<DropdownMenu ref={ref}>
<DropdownMenuArrow />
Expand Down

0 comments on commit b4392bc

Please sign in to comment.