Collapse navigation drawer when clicking on a link.

feature/appm-store/pbac
Dharmakeerthi Lasantha 5 years ago
commit d28d3ef310

@ -142,7 +142,7 @@ class Dashboard extends React.Component {
</Layout> </Layout>
<Drawer <Drawer
title={ title={
<Link to="/publisher/apps"> <Link to="/publisher/apps" onClick={this.onCloseMobileNavigationBar}>
<img alt="logo" <img alt="logo"
src={this.Logo} src={this.Logo}
style={{marginLeft: 30}} style={{marginLeft: 30}}
@ -159,7 +159,8 @@ class Dashboard extends React.Component {
theme="light" theme="light"
mode="inline" mode="inline"
defaultSelectedKeys={['1']} defaultSelectedKeys={['1']}
style={{lineHeight: '64px', width: 231}}> style={{lineHeight: '64px', width: 231}}
onClick={this.onCloseMobileNavigationBar}>
<Menu.Item key="1"> <Menu.Item key="1">
<Link to="/publisher/apps"> <Link to="/publisher/apps">
<Icon type="appstore"/>Apps <Icon type="appstore"/>Apps

@ -11,7 +11,7 @@
"license": "Apache License 2.0", "license": "Apache License 2.0",
"dependencies": { "dependencies": {
"acorn": "^6.2.0", "acorn": "^6.2.0",
"antd": "^3.20.1", "antd": "^3.23.6",
"axios": "^0.18.1", "axios": "^0.18.1",
"d3": "^5.9.7", "d3": "^5.9.7",
"dagre": "^0.8.4", "dagre": "^0.8.4",

@ -156,7 +156,7 @@ class Dashboard extends React.Component {
</div> </div>
</Layout> </Layout>
<Drawer <Drawer
title={<Link to="/store/android"> title={<Link to="/store/android" onClick={this.onCloseMobileNavigationBar}>
<img alt="logo" src={this.logo} style={{marginLeft: 30}} width={"60%"}/> <img alt="logo" src={this.logo} style={{marginLeft: 30}} width={"60%"}/>
</Link>} </Link>}
placement="left" placement="left"
@ -169,7 +169,8 @@ class Dashboard extends React.Component {
theme="light" theme="light"
mode="inline" mode="inline"
defaultSelectedKeys={selectedKeys} defaultSelectedKeys={selectedKeys}
style={{lineHeight: '64px', width: 231}}> style={{lineHeight: '64px', width: 231}}
onClick={this.onCloseMobileNavigationBar}>
{DeviceTypesData} {DeviceTypesData}

Loading…
Cancel
Save