diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-07-25 02:40:22 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-08-24 07:44:43 +0800 |
commit | d1de5ae94f1662f35a7b031ac59b4bb9bd719695 (patch) | |
tree | 2f25612e7ae7a906aad0f67076120a861bba9200 /ui/app/components/pages | |
parent | 3b408715c745030aed6e720e6f19dc8f2aa511d1 (diff) | |
download | tangerine-wallet-browser-d1de5ae94f1662f35a7b031ac59b4bb9bd719695.tar tangerine-wallet-browser-d1de5ae94f1662f35a7b031ac59b4bb9bd719695.tar.gz tangerine-wallet-browser-d1de5ae94f1662f35a7b031ac59b4bb9bd719695.tar.bz2 tangerine-wallet-browser-d1de5ae94f1662f35a7b031ac59b4bb9bd719695.tar.lz tangerine-wallet-browser-d1de5ae94f1662f35a7b031ac59b4bb9bd719695.tar.xz tangerine-wallet-browser-d1de5ae94f1662f35a7b031ac59b4bb9bd719695.tar.zst tangerine-wallet-browser-d1de5ae94f1662f35a7b031ac59b4bb9bd719695.zip |
Add react-media package to prevent rendering wallet-view twice in the popup view
Diffstat (limited to 'ui/app/components/pages')
-rw-r--r-- | ui/app/components/pages/home/home.component.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/app/components/pages/home/home.component.js b/ui/app/components/pages/home/home.component.js index 0ab6f77f8..20ba44484 100644 --- a/ui/app/components/pages/home/home.component.js +++ b/ui/app/components/pages/home/home.component.js @@ -1,5 +1,6 @@ import React, { PureComponent } from 'react' import PropTypes from 'prop-types' +import Media from 'react-media' import { Redirect } from 'react-router-dom' import WalletView from '../../wallet-view' import TxView from '../../tx-view' @@ -64,7 +65,10 @@ export default class Home extends PureComponent { return ( <div className="main-container"> <div className="account-and-transaction-details"> - <WalletView responsiveDisplayClassname="lap-visible" /> + <Media + query="(min-width: 576px)" + render={() => <WalletView />} + /> <TxView /> </div> </div> |