templates/client/screens/screen.jsx in hippo-fw-0.9.5 vs templates/client/screens/screen.jsx in hippo-fw-0.9.6
- old
+ new
@@ -1,13 +1,14 @@
import React from 'react';
+import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import Screen from 'hippo/components/screen';
@observer
export default class <%= screen_class %> extends React.PureComponent {
static propTypes = {
- screen: React.PropTypes.instanceOf(Screen.Instance).isRequired,
+ screen: PropTypes.instanceOf(Screen.Instance).isRequired,
}
render() {
return (
<Screen screen={this.props.screen}>