Skip to content

Commit

Permalink
Fix react-router deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
dfrankland committed Apr 24, 2016
1 parent 44af272 commit a913500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ContentPage from './components/ContentPage';
import NotFoundPage from './components/NotFoundPage';
import content from './content';

const getContextComponent = async (location, callback) => {
const getContextComponent = async ({ location }, callback) => {
const data = await content(location.pathname);
callback(null, () => <ContentPage {...data} />);
};
Expand Down

0 comments on commit a913500

Please sign in to comment.