|
|
@ -4,9 +4,9 @@ import {Layout, Menu, Icon} from 'antd';
|
|
|
|
const {Header, Content, Footer} = Layout;
|
|
|
|
const {Header, Content, Footer} = Layout;
|
|
|
|
|
|
|
|
|
|
|
|
import Logo from "../../../public/images/logo.svg";
|
|
|
|
import Logo from "../../../public/images/logo.svg";
|
|
|
|
import {Link, NavLink} from "react-router-dom";
|
|
|
|
import {BrowserRouter,Switch,Link, NavLink} from "react-router-dom";
|
|
|
|
import RouteWithSubRoutes from "../../components/RouteWithSubRoutes"
|
|
|
|
import RouteWithSubRoutes from "../../components/RouteWithSubRoutes"
|
|
|
|
import {Switch, Redirect} from 'react-router'
|
|
|
|
import {Redirect} from 'react-router'
|
|
|
|
import "../../App.css";
|
|
|
|
import "../../App.css";
|
|
|
|
|
|
|
|
|
|
|
|
class Dashboard extends React.Component {
|
|
|
|
class Dashboard extends React.Component {
|
|
|
@ -41,13 +41,15 @@ class Dashboard extends React.Component {
|
|
|
|
</Layout>
|
|
|
|
</Layout>
|
|
|
|
<Layout>
|
|
|
|
<Layout>
|
|
|
|
<Content style={{padding: '0 0'}}>
|
|
|
|
<Content style={{padding: '0 0'}}>
|
|
|
|
<Switch>
|
|
|
|
<BrowserRouter>
|
|
|
|
<Redirect exact from="/publisher" to="/publisher/apps"/>
|
|
|
|
<Switch>
|
|
|
|
{this.state.routes.map((route) => (
|
|
|
|
<Redirect exact from="/publisher" to="/publisher/apps"/>
|
|
|
|
<RouteWithSubRoutes key={route.path} {...route} />
|
|
|
|
{this.state.routes.map((route) => (
|
|
|
|
))}
|
|
|
|
<RouteWithSubRoutes key={route.path} {...route} />
|
|
|
|
|
|
|
|
))}
|
|
|
|
|
|
|
|
|
|
|
|
</Switch>
|
|
|
|
</Switch>
|
|
|
|
|
|
|
|
</BrowserRouter>
|
|
|
|
|
|
|
|
|
|
|
|
</Content>
|
|
|
|
</Content>
|
|
|
|
<Footer style={{textAlign: 'center'}}>
|
|
|
|
<Footer style={{textAlign: 'center'}}>
|
|
|
|