|
@@ -9,25 +9,29 @@ import store from "../reducers"
|
|
|
import Catalog from "./catalog"
|
|
|
|
|
|
|
|
|
-const MainImg = ({className = "MainImg" }) => {
|
|
|
+const Main = ({className = "MainImg" }) => {
|
|
|
return (
|
|
|
<div className = {className}>
|
|
|
- <aside></aside>
|
|
|
- <content>
|
|
|
- <Switch>
|
|
|
- <Route path = "/" component = {Main} exact/>
|
|
|
- <Route path = "/catalog" component={Catalog}/>
|
|
|
- <Route path="/about" component = {About}/>
|
|
|
- <Route path = "/post" component = {Post}/>
|
|
|
- <Route path = "/contacts" component = {Contacts}/>
|
|
|
- <Route component = { NotFound } exact/>
|
|
|
- </Switch>
|
|
|
- </content>
|
|
|
+ <Switch>
|
|
|
+ <aside>
|
|
|
+
|
|
|
+ <Route path = "/catalog/" component={Catalog}/>
|
|
|
+ </aside>
|
|
|
+ <content>
|
|
|
+
|
|
|
+ {/* <Route path = "/" component = {Main} exact/> */}
|
|
|
+ <Route path="/about" component = {About}/>
|
|
|
+ <Route path = "/post" component = {Post}/>
|
|
|
+ <Route path = "/contacts" component = {Contacts}/>
|
|
|
+ <Route component = { NotFound } exact/>
|
|
|
+
|
|
|
+ </content>
|
|
|
+ </Switch>
|
|
|
</div>
|
|
|
)
|
|
|
}
|
|
|
|
|
|
- const Main = () => <div>Я тут кароче самый главный страниц</div>
|
|
|
+// const Main = () => <div>Я тут кароче самый главный страниц</div>
|
|
|
const About = () => <div>Мы крутой магазин, бла-бла</div>
|
|
|
const NotFound = () => <div>Да пошел ты!</div>
|
|
|
|
|
@@ -35,4 +39,4 @@ const MainImg = ({className = "MainImg" }) => {
|
|
|
const Contacts = () => <div className = "contacts">Тут будет адрес, номер телефона и соцсети</div>
|
|
|
|
|
|
|
|
|
-export default MainImg;
|
|
|
+export default Main;
|