0
0
Fork 0

Use ES module build of react-router-dom (#5264)

This commit is contained in:
Nolan Lawson 2017-10-07 17:55:58 -07:00 committed by Eugen Rochko
parent 684001d729
commit 7de6d269d2
10 changed files with 16 additions and 11 deletions

View file

@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import Link from 'react-router-dom/Link';
import { Link } from 'react-router-dom';
const ColumnLink = ({ icon, text, to, href, method }) => {
if (href) {

View file

@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import NavLink from 'react-router-dom/NavLink';
import { NavLink } from 'react-router-dom';
import { FormattedMessage, injectIntl } from 'react-intl';
import { debounce } from 'lodash';
import { isUserTouching } from '../../../is_mobile';

View file

@ -1,7 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import Switch from 'react-router-dom/Switch';
import Route from 'react-router-dom/Route';
import { Switch, Route } from 'react-router-dom';
import ColumnLoading from '../components/column_loading';
import BundleColumnError from '../components/bundle_column_error';