|
@@ -5,7 +5,7 @@ import { createBrowserHistory } from "history";
|
|
|
import { createStore, combineReducers, applyMiddleware } from 'redux';
|
|
|
import { Provider } from 'react-redux';
|
|
|
import { authReducer, promiseReducer, actionAuthLogin, frontEndReducer, actionRootCats, goodsReducer } from './reducers';
|
|
|
-import { CGoodsList, CLoginForm, CMainAppBar, COrdersList, goodsExample, GoodsList } from "./Components";
|
|
|
+import { CGoodsList, CLoginForm, CMainAppBar, COrder, COrdersList, exampleOrder, goodsExample, GoodsList, Order } from "./Components";
|
|
|
import { CLogout } from './Components';
|
|
|
import { CSidebar } from './Components/Sidebar';
|
|
|
import thunk from 'redux-thunk';
|
|
@@ -62,6 +62,7 @@ function App() {
|
|
|
<Route path="/orders" component={COrdersList} />
|
|
|
<Route path="/goods" component={CGoodsList} />
|
|
|
<Route path="/category/:_id" component={CCategory} />
|
|
|
+ <Route path="/order/:_id" component={COrder} />
|
|
|
<Route path="/login" component={CLoginForm} />
|
|
|
<Route path="/logout" component={CLogout} />
|
|
|
<Route path="*" component={NotFound} />
|