Skip to content

Commit c1e3b9c

Browse files
author
David Silva
committed
Merge branch 'release/0.11.1'
2 parents 858b0c7 + e8bab77 commit c1e3b9c

File tree

5 files changed

+27
-21
lines changed

5 files changed

+27
-21
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## 0.11.0
44

5+
- Fixed bug that prevents back button from working
6+
7+
## 0.11.0
8+
59
- #83 Creates a <loading> component that displays while waiting for data as a generic way
610
- #103 Creates utilities to verify valid urls on dynamic inputs
711
- #52 Removed the odd space under the header

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codecorgi",
3-
"version": "0.11.0",
3+
"version": "0.11.1",
44
"private": true,
55
"proxy": "http://localhost:9500",
66
"devDependencies": {

src/containers/app/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react';
2+
import { withRouter } from 'react-router';
23
import Header from '../../components/header';
34
import Footer from '../../components/footer';
45
import Routes from '../../routes';
@@ -23,7 +24,7 @@ class App extends React.Component {
2324

2425
render() {
2526
const { profile } = this.props;
26-
return(
27+
return (
2728
<div>
2829
<Header profile={profile} />
2930
<Routes />
@@ -48,4 +49,4 @@ const mapDispatchToProps = (dispatch) => bindActionCreators({
4849
getProfile,
4950
}, dispatch);
5051

51-
export default connect(mapStateToProps, mapDispatchToProps)(App);
52+
export default withRouter(connect(mapStateToProps, mapDispatchToProps)(App));

src/routes.js

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22
import { Route, Switch } from 'react-router-dom';
3+
import { withRouter } from 'react-router';
34
import Home from './containers/home';
45
import About from './containers/about';
56
import WeAreOpenSource from './containers/about/openSource';
@@ -17,26 +18,26 @@ import EasterEgg from './containers/easter';
1718

1819
class Routes extends React.Component {
1920
render() {
20-
return(
21+
return (
2122
<Switch>
22-
<Route exact path="/" component={ Home } />
23-
<Route path="/about/open-source" component={ WeAreOpenSource } />
24-
<Route path="/about" component={ About } />
25-
<Route path="/signup" component={ Signup } />
26-
<Route path="/learning" component={ LearningPageContainer } />
27-
<Route path="/challenges" component={ ChallengesContainer } />
28-
<Route path="/submit/new/:number" component={ SubmitFormContainer } />
29-
<Route path="/submit/edit/:id" component={ SubmitEditContainer } />
30-
<Route path="/submit/:id" component={ SubmitViewContainer } />
31-
<Route path="/challenge/:number/:title" component={ SingleChallengeContainer } />
32-
<Route path="/profile/edit" component={ ProfileEdit } />
33-
<Route path="/profile/:username?" component={ Profile } />
34-
<Route path="/g/:username" component={ Profile } />
35-
<Route path="/418" component={ () => <EasterEgg type="418" /> } />
36-
<Route component={ e404 } />
23+
<Route exact path="/" component={Home} />
24+
<Route exact path="/about/open-source" component={WeAreOpenSource} />
25+
<Route exact path="/about" component={About} />
26+
<Route exact path="/signup" component={Signup} />
27+
<Route exact path="/learning" component={LearningPageContainer} />
28+
<Route exact path="/challenges" component={ChallengesContainer} />
29+
<Route exact path="/418" component={() => <EasterEgg type="418" />} />
30+
<Route path="/submit/new/:number" component={SubmitFormContainer} />
31+
<Route path="/submit/edit/:id" component={SubmitEditContainer} />
32+
<Route path="/submit/:id" component={SubmitViewContainer} />
33+
<Route path="/challenge/:number/:title" component={SingleChallengeContainer} />
34+
<Route path="/profile/edit" component={ProfileEdit} />
35+
<Route path="/profile/:username?" component={Profile} />
36+
<Route path="/g/:username" component={Profile} />
37+
<Route component={e404} />
3738
</Switch>
3839
);
3940
}
4041
}
4142

42-
export default Routes;
43+
export default withRouter(Routes);

0 commit comments

Comments
 (0)