Merge branch 'develop' of code.with.camp:858/frontend into develop
This commit is contained in:
commit
7a3e025278
17
src/App.js
17
src/App.js
|
@ -1,18 +1,23 @@
|
||||||
import React, { Component } from 'react';
|
import React, {Component} from 'react';
|
||||||
import { Provider } from 'react-redux';
|
import {Provider} from 'react-redux';
|
||||||
import './App.css';
|
import './App.css';
|
||||||
import { Route } from 'react-router-dom';
|
import {Route} from 'react-router-dom';
|
||||||
import Home from './containers/Home';
|
import Home from './containers/Home';
|
||||||
import TopicsList from './containers/TopicsList';
|
import TopicsList from './containers/TopicsList';
|
||||||
import store from './store/configureStore';
|
import store from './store/configureStore';
|
||||||
|
import Header from "./components/Header";
|
||||||
|
import Footer from "./components/Footer";
|
||||||
|
|
||||||
class App extends Component {
|
class App extends Component {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<Provider store={ store }>
|
<Provider store={store}>
|
||||||
|
|
||||||
<div className="App">
|
<div className="App">
|
||||||
<Route exact={ true } path="/" component={ Home } />
|
<Header/>
|
||||||
<Route path="/topics" component={ TopicsList } />
|
<Route exact={true} path="/" component={Home}/>
|
||||||
|
<Route path="/topics" component={TopicsList}/>
|
||||||
|
<Footer/>
|
||||||
</div>
|
</div>
|
||||||
</Provider>
|
</Provider>
|
||||||
);
|
);
|
||||||
|
|
|
@ -16,12 +16,10 @@ class Home extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Header/>
|
|
||||||
<Search/>
|
<Search/>
|
||||||
<RandomTopic/>
|
<RandomTopic/>
|
||||||
<RandomLocation/>
|
<RandomLocation/>
|
||||||
<RandomDate/>
|
<RandomDate/>
|
||||||
<Footer/>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
//
|
//
|
||||||
|
@ -41,7 +39,6 @@ class Home extends React.Component {
|
||||||
// })}
|
// })}
|
||||||
// </div>
|
// </div>
|
||||||
// </div>
|
// </div>
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user