This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { PropTypes } from 'react'; | |
import { Model } from 'redux-orm'; | |
import getEnv from 'get-env'; | |
const env = getEnv(); | |
class ValidatingModel extends Model { | |
static _validateProps(props) { | |
if (typeof this.propTypes === 'object') { | |
forOwn(this.propTypes, (validator, key) => { |