|
|
@ -9,24 +9,29 @@ import AddNewApp from "./pages/dashboard/add-new-app/AddNewApp";
|
|
|
|
import './index.css';
|
|
|
|
import './index.css';
|
|
|
|
import store from "./js/store/index";
|
|
|
|
import store from "./js/store/index";
|
|
|
|
import {Provider} from "react-redux";
|
|
|
|
import {Provider} from "react-redux";
|
|
|
|
|
|
|
|
import {Switch} from "react-router";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const routes = [
|
|
|
|
const routes = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: '/publisher/login',
|
|
|
|
path: '/publisher/login',
|
|
|
|
|
|
|
|
exact: true,
|
|
|
|
component: Login
|
|
|
|
component: Login
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: '/publisher',
|
|
|
|
path: '/publisher/dashboard',
|
|
|
|
|
|
|
|
exact: false,
|
|
|
|
component: Dashboard,
|
|
|
|
component: Dashboard,
|
|
|
|
routes: [
|
|
|
|
routes: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: '/publisher/apps',
|
|
|
|
path: '/publisher/dashboard/apps',
|
|
|
|
component: Apps
|
|
|
|
component: Apps,
|
|
|
|
|
|
|
|
exact: false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: '/publisher/new-app',
|
|
|
|
path: '/publisher/dashboard/new-app',
|
|
|
|
component: AddNewApp
|
|
|
|
component: AddNewApp,
|
|
|
|
|
|
|
|
exact: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -35,7 +40,7 @@ const routes = [
|
|
|
|
|
|
|
|
|
|
|
|
ReactDOM.render(
|
|
|
|
ReactDOM.render(
|
|
|
|
<Provider store={store}>
|
|
|
|
<Provider store={store}>
|
|
|
|
<App routes={routes}/>
|
|
|
|
<App routes={routes}/>
|
|
|
|
</Provider>,
|
|
|
|
</Provider>,
|
|
|
|
document.getElementById('root'));
|
|
|
|
document.getElementById('root'));
|
|
|
|
|
|
|
|
|
|
|
|