chore(client): replace react-media with react-responsive

react-media does not handle props changes, use react-responsive instead.
This commit is contained in:
Valeriy
2019-03-09 00:59:25 +03:00
committed by mrugesh mohapatra
parent 81dd2ccb54
commit 6bbe152f34
5 changed files with 58 additions and 44 deletions

View File

@@ -1,5 +1,5 @@
import React from 'react';
import Media from 'react-media';
import Media from 'react-responsive';
const fCClogo = 'https://s3.amazonaws.com/freecodecamp/freecodecamp_logo.svg';
const fCCglyph = 'https://s3.amazonaws.com/freecodecamp/FFCFire.png';

View File

@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { createSelector } from 'reselect';
import Media from 'react-media';
import Media from 'react-responsive';
import FCCSearch from 'react-freecodecamp-search';
import NavLogo from './components/NavLogo';