Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Used named imports for react-router in react-router-config #6291

Merged
merged 1 commit into from
Aug 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/react-router-config/modules/matchRoutes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import matchPath from "react-router/matchPath";
import Router from "react-router/Router";
import { matchPath, Router } from "react-router";

// ensure we're using the exact code for default root match
const { computeMatch } = Router.prototype;
Expand Down
3 changes: 1 addition & 2 deletions packages/react-router-config/modules/renderRoutes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from "react";
import Switch from "react-router/Switch";
import Route from "react-router/Route";
import { Switch, Route } from "react-router";

const renderRoutes = (routes, extraProps = {}, switchProps = {}) =>
routes ? (
Expand Down