Bug 1491763 - Fix React warnings in ReverseSearchInput.js; r=Honza.

Differential Revision: https://phabricator.services.mozilla.com/D5996

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nicolas Chevobbe 2018-09-17 12:10:24 +00:00
Родитель 13e736d609
Коммит 490214bc67
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -30,8 +30,8 @@ class ReverseSearchInput extends Component {
dispatch: PropTypes.func.isRequired,
hud: PropTypes.object.isRequired,
reverseSearchResult: PropTypes.string,
reverseSearchTotalResults: PropTypes.Array,
reverseSearchResultPosition: PropTypes.int,
reverseSearchTotalResults: PropTypes.number,
reverseSearchResultPosition: PropTypes.number,
visible: PropTypes.bool,
};
}
@ -152,6 +152,7 @@ class ReverseSearchInput extends Component {
return [
dom.button({
key: "search-result-button-prev",
className: "devtools-button search-result-button-prev",
title: l10n.getFormatStr("webconsole.reverseSearch.result.previousButton.tooltip",
[isMacOS ? "Ctrl + R" : "F9"]),
@ -161,6 +162,7 @@ class ReverseSearchInput extends Component {
}
}),
dom.button({
key: "search-result-button-next",
className: "devtools-button search-result-button-next",
title: l10n.getFormatStr("webconsole.reverseSearch.result.nextButton.tooltip",
[isMacOS ? "Ctrl + S" : "Shift + F9"]),
@ -194,7 +196,7 @@ class ReverseSearchInput extends Component {
this.inputNode = node;
},
autoFocus: true,
placeHolder: l10n.getStr("webconsole.reverseSearch.input.placeHolder"),
placeholder: l10n.getStr("webconsole.reverseSearch.input.placeHolder"),
className: "reverse-search-input devtools-monospace",
onKeyDown: this.onInputKeyDown,
onInput: ({target}) => dispatch(actions.reverseSearchInputChange(target.value))