mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-27 09:21:55 +02:00
Fix use of deprecated module
Use PropTypes from "prop-types" instead of the deprecated React.PropTypes submodule.
This commit is contained in:
parent
e6dbc3b863
commit
e4b86f0730
@ -17,6 +17,7 @@ limitations under the License.
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
import PropTypes from "prop-types";
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -27,15 +28,15 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
propTypes: {
|
propTypes: {
|
||||||
// The primary button which is styled differently and has default focus.
|
// The primary button which is styled differently and has default focus.
|
||||||
primaryButton: React.PropTypes.node.isRequired,
|
primaryButton: PropTypes.node.isRequired,
|
||||||
|
|
||||||
// onClick handler for the primary button.
|
// onClick handler for the primary button.
|
||||||
onPrimaryButtonClick: React.PropTypes.func.isRequired,
|
onPrimaryButtonClick: PropTypes.func.isRequired,
|
||||||
|
|
||||||
// onClick handler for the cancel button.
|
// onClick handler for the cancel button.
|
||||||
onCancel: React.PropTypes.func.isRequired,
|
onCancel: PropTypes.func.isRequired,
|
||||||
|
|
||||||
focus: React.PropTypes.bool,
|
focus: PropTypes.bool,
|
||||||
},
|
},
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user