зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1325914 - fix react-dev warnings; r=rickychien
MozReview-Commit-ID: GJ4ppGnXHLu --HG-- extra : rebase_source : 8095f9b6873b8a249e0f9ab8940f9eb77ec66679
This commit is contained in:
Родитель
6ac54a1574
Коммит
5bbe0834de
|
@ -21,6 +21,7 @@ function FilterButtons({
|
|||
|
||||
return button({
|
||||
id: `requests-menu-filter-${type}-button`,
|
||||
key: type,
|
||||
className: classList.join(" "),
|
||||
"data-key": type,
|
||||
onClick: toggleRequestFilterType,
|
||||
|
@ -32,8 +33,8 @@ function FilterButtons({
|
|||
}
|
||||
|
||||
FilterButtons.propTypes = {
|
||||
state: PropTypes.object.isRequired,
|
||||
toggleRequestFilterType: PropTypes.func.iRequired,
|
||||
requestFilterTypes: PropTypes.object.isRequired,
|
||||
toggleRequestFilterType: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
module.exports = connect(
|
||||
|
|
|
@ -104,8 +104,8 @@ function SecurityPanel({
|
|||
SecurityPanel.displayName = "SecurityPanel";
|
||||
|
||||
SecurityPanel.propTypes = {
|
||||
securityInfo: PropTypes.object.isRequired,
|
||||
url: PropTypes.string.isRequired,
|
||||
securityInfo: PropTypes.object,
|
||||
url: PropTypes.string,
|
||||
};
|
||||
|
||||
function renderValue(weaknessReasons = [], props) {
|
||||
|
@ -124,7 +124,7 @@ function renderValue(weaknessReasons = [], props) {
|
|||
// Display one line selectable text for security details
|
||||
input({
|
||||
className: "textbox-input",
|
||||
readonly: "true",
|
||||
readOnly: "true",
|
||||
value,
|
||||
})
|
||||
,
|
||||
|
|
Загрузка…
Ссылка в новой задаче