Move asset list to home tab on small screens (#8264)
Two tabs have been created on the home screen: 'Assets' and 'History'. This tabbed view is shown only on small screens (e.g. in the popup). The fullscreen view is unchanged. The toggle-able left sidebar no longer exists, so some 'sidebar-left' specific code and styles have been removed. The button in the menu bar has been removed as well. The 'History' title of the transaction history is now redundant when where are no pending transactions, so it as been conditionally hidden. A passthrough for `data-testid` has been added to the Tab component for convenience in e2e tests.feature/default_network_editable
parent
dbc7446b9a
commit
cb0ab90c84
@ -1 +1 @@ |
||||
export { default } from './menu-bar.container' |
||||
export { default } from './menu-bar.component' |
||||
|
@ -1,26 +0,0 @@ |
||||
import { connect } from 'react-redux' |
||||
import { WALLET_VIEW_SIDEBAR } from '../sidebars/sidebar.constants' |
||||
import MenuBar from './menu-bar.component' |
||||
import { showSidebar, hideSidebar } from '../../../store/actions' |
||||
|
||||
const mapStateToProps = (state) => { |
||||
const { appState: { sidebar: { isOpen } } } = state |
||||
|
||||
return { |
||||
sidebarOpen: isOpen, |
||||
} |
||||
} |
||||
|
||||
const mapDispatchToProps = (dispatch) => { |
||||
return { |
||||
showSidebar: () => { |
||||
dispatch(showSidebar({ |
||||
transitionName: 'sidebar-right', |
||||
type: WALLET_VIEW_SIDEBAR, |
||||
})) |
||||
}, |
||||
hideSidebar: () => dispatch(hideSidebar()), |
||||
} |
||||
} |
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(MenuBar) |
@ -1 +0,0 @@ |
||||
export const WALLET_VIEW_SIDEBAR = 'wallet-view' |
Loading…
Reference in new issue