|
|
@ -1,5 +1,5 @@
|
|
|
|
import React from "react";
|
|
|
|
import React from "react";
|
|
|
|
import { Layout, Menu, Breadcrumb, PageHeader } from 'antd';
|
|
|
|
import { Layout, Menu, Icon } from 'antd';
|
|
|
|
|
|
|
|
|
|
|
|
const { Header, Content, Footer } = Layout;
|
|
|
|
const { Header, Content, Footer } = Layout;
|
|
|
|
|
|
|
|
|
|
|
@ -7,7 +7,7 @@ import styles from './Dashboard.less';
|
|
|
|
import Logo from "../../../public/images/logo.svg";
|
|
|
|
import Logo from "../../../public/images/logo.svg";
|
|
|
|
import Login from "../Login";
|
|
|
|
import Login from "../Login";
|
|
|
|
import {renderRoutes} from "react-router-config";
|
|
|
|
import {renderRoutes} from "react-router-config";
|
|
|
|
import {NavLink} from "react-router-dom";
|
|
|
|
import {Link, NavLink} from "react-router-dom";
|
|
|
|
import RouteWithSubRoutes from "../../components/RouteWithSubRoutes"
|
|
|
|
import RouteWithSubRoutes from "../../components/RouteWithSubRoutes"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -30,25 +30,16 @@ class Dashboard extends React.Component {
|
|
|
|
defaultSelectedKeys={['2']}
|
|
|
|
defaultSelectedKeys={['2']}
|
|
|
|
style={{ lineHeight: '64px' }}
|
|
|
|
style={{ lineHeight: '64px' }}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Menu.Item key="1">nav 1</Menu.Item>
|
|
|
|
<Menu.Item key="1"><Link to="apps"><Icon type="appstore" />Apps</Link></Menu.Item>
|
|
|
|
<Menu.Item key="2">nav 2</Menu.Item>
|
|
|
|
<Menu.Item key="2"><Link to="apps"><Icon type="line-chart" />Apps</Link></Menu.Item>
|
|
|
|
<Menu.Item key="3">nav 3</Menu.Item>
|
|
|
|
<Menu.Item key="3"><Link to="new-app"><Icon type="upload" />Add New App</Link></Menu.Item>
|
|
|
|
</Menu>
|
|
|
|
</Menu>
|
|
|
|
</Header>
|
|
|
|
</Header>
|
|
|
|
<Content style={{ padding: '0 0' }}>
|
|
|
|
<Content style={{ padding: '0 0' }}>
|
|
|
|
<Breadcrumb style={{ margin: '16px 50px' }}>
|
|
|
|
|
|
|
|
<Breadcrumb.Item>Home</Breadcrumb.Item>
|
|
|
|
|
|
|
|
<Breadcrumb.Item>List</Breadcrumb.Item>
|
|
|
|
|
|
|
|
<Breadcrumb.Item>App</Breadcrumb.Item>
|
|
|
|
|
|
|
|
</Breadcrumb>
|
|
|
|
|
|
|
|
<PageHeader
|
|
|
|
|
|
|
|
title="Title"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<div style={{ background: '#fff', padding: 24, minHeight: 280 }}>
|
|
|
|
|
|
|
|
{this.state.routes.map((route) => (
|
|
|
|
{this.state.routes.map((route) => (
|
|
|
|
<RouteWithSubRoutes key={route.path} {...route} />
|
|
|
|
<RouteWithSubRoutes key={route.path} {...route} />
|
|
|
|
))}
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</Content>
|
|
|
|
</Content>
|
|
|
|
<Footer style={{ textAlign: 'center' }}>
|
|
|
|
<Footer style={{ textAlign: 'center' }}>
|
|
|
|
©2019 entgra.io
|
|
|
|
©2019 entgra.io
|
|
|
|