Follow up react's deprecation

This commit is contained in:
Yuya Ochiai
2017-05-12 00:04:27 +09:00
parent f6ef409cb0
commit 2e310dc1ee
14 changed files with 85 additions and 66 deletions

View File

@@ -1,4 +1,5 @@
const React = require('react');
const PropTypes = require('prop-types');
const {Alert} = require('react-bootstrap');
const baseClassName = 'AutoSaveIndicator';
@@ -34,8 +35,8 @@ function AutoSaveIndicator(props) {
}
AutoSaveIndicator.propTypes = {
savingState: React.PropTypes.string.isRequired,
errorMessage: React.PropTypes.string
savingState: PropTypes.string.isRequired,
errorMessage: PropTypes.string
};
module.exports = AutoSaveIndicator;