mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Collapse navigation drawer when clicking on a link.
This commit is contained in:
commit
d28d3ef310
@ -142,7 +142,7 @@ class Dashboard extends React.Component {
|
||||
</Layout>
|
||||
<Drawer
|
||||
title={
|
||||
<Link to="/publisher/apps">
|
||||
<Link to="/publisher/apps" onClick={this.onCloseMobileNavigationBar}>
|
||||
<img alt="logo"
|
||||
src={this.Logo}
|
||||
style={{marginLeft: 30}}
|
||||
@ -159,7 +159,8 @@ class Dashboard extends React.Component {
|
||||
theme="light"
|
||||
mode="inline"
|
||||
defaultSelectedKeys={['1']}
|
||||
style={{lineHeight: '64px', width: 231}}>
|
||||
style={{lineHeight: '64px', width: 231}}
|
||||
onClick={this.onCloseMobileNavigationBar}>
|
||||
<Menu.Item key="1">
|
||||
<Link to="/publisher/apps">
|
||||
<Icon type="appstore"/>Apps
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
"license": "Apache License 2.0",
|
||||
"dependencies": {
|
||||
"acorn": "^6.2.0",
|
||||
"antd": "^3.20.1",
|
||||
"antd": "^3.23.6",
|
||||
"axios": "^0.18.1",
|
||||
"d3": "^5.9.7",
|
||||
"dagre": "^0.8.4",
|
||||
|
||||
@ -156,7 +156,7 @@ class Dashboard extends React.Component {
|
||||
</div>
|
||||
</Layout>
|
||||
<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%"}/>
|
||||
</Link>}
|
||||
placement="left"
|
||||
@ -169,7 +169,8 @@ class Dashboard extends React.Component {
|
||||
theme="light"
|
||||
mode="inline"
|
||||
defaultSelectedKeys={selectedKeys}
|
||||
style={{lineHeight: '64px', width: 231}}>
|
||||
style={{lineHeight: '64px', width: 231}}
|
||||
onClick={this.onCloseMobileNavigationBar}>
|
||||
|
||||
{DeviceTypesData}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user