Skip to content

Commit

Permalink
feat(Layout): add withRouter to Address Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip London committed Jan 31, 2020
1 parent 247b8e0 commit bccd387
Showing 1 changed file with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { compose } from 'redux'
import { Field, reduxForm } from 'redux-form'
import { FormattedMessage } from 'react-intl'
import { LinkContainer } from 'react-router-bootstrap'
import React from 'react'
import styled from 'styled-components'

import { Icon, TabMenu, TabMenuItem } from 'blockchain-info-components'
import { LinkContainer } from 'react-router-bootstrap'
import { model } from 'data'
import { TextBox } from 'components/Form'
import { withRouter } from 'react-router-dom'
import HorizontalMenu from 'components/HorizontalMenu'
import React from 'react'
import styled from 'styled-components'
const { WALLET_TX_SEARCH } = model.form

const Wrapper = styled.div`
Expand Down Expand Up @@ -79,6 +80,11 @@ const MenuTop = () => (
</Wrapper>
)

export default reduxForm({
form: WALLET_TX_SEARCH
})(MenuTop)
const enhance = compose(
withRouter,
reduxForm({
form: WALLET_TX_SEARCH
})
)

export default enhance(MenuTop)

0 comments on commit bccd387

Please sign in to comment.