lint error fix
This commit is contained in:
parent
7a44cceb65
commit
c676fae7bf
2 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@ class Console extends React.Component {
|
||||||
this.props.dispatchConsoleEvent(this.props.consoleEvents);
|
this.props.dispatchConsoleEvent(this.props.consoleEvents);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.props.consoleFontSize !== prevProps.consoleFontSize){
|
if (this.props.consoleFontSize !== prevProps.consoleFontSize) {
|
||||||
this.props.clearConsole();
|
this.props.clearConsole();
|
||||||
this.props.dispatchConsoleEvent(this.props.consoleEvents);
|
this.props.dispatchConsoleEvent(this.props.consoleEvents);
|
||||||
}
|
}
|
||||||
|
@ -134,7 +134,8 @@ Console.propTypes = {
|
||||||
expandConsole: PropTypes.func.isRequired,
|
expandConsole: PropTypes.func.isRequired,
|
||||||
clearConsole: PropTypes.func.isRequired,
|
clearConsole: PropTypes.func.isRequired,
|
||||||
dispatchConsoleEvent: PropTypes.func.isRequired,
|
dispatchConsoleEvent: PropTypes.func.isRequired,
|
||||||
theme: PropTypes.string.isRequired
|
theme: PropTypes.string.isRequired,
|
||||||
|
consoleFontSize: PropTypes.number.isRequired
|
||||||
};
|
};
|
||||||
|
|
||||||
Console.defaultProps = {
|
Console.defaultProps = {
|
||||||
|
|
|
@ -333,7 +333,6 @@ class Preferences extends React.Component {
|
||||||
|
|
||||||
Preferences.propTypes = {
|
Preferences.propTypes = {
|
||||||
fontSize: PropTypes.number.isRequired,
|
fontSize: PropTypes.number.isRequired,
|
||||||
consoleFontSize: PropTypes.number.isRequired,
|
|
||||||
indentationAmount: PropTypes.number.isRequired,
|
indentationAmount: PropTypes.number.isRequired,
|
||||||
setIndentation: PropTypes.func.isRequired,
|
setIndentation: PropTypes.func.isRequired,
|
||||||
indentWithSpace: PropTypes.func.isRequired,
|
indentWithSpace: PropTypes.func.isRequired,
|
||||||
|
|
Loading…
Reference in a new issue