variable name change
This commit is contained in:
parent
c676fae7bf
commit
f2c32e89a6
2 changed files with 4 additions and 4 deletions
|
@ -24,7 +24,7 @@ class Console extends React.Component {
|
|||
this.props.dispatchConsoleEvent(this.props.consoleEvents);
|
||||
}
|
||||
|
||||
if (this.props.consoleFontSize !== prevProps.consoleFontSize) {
|
||||
if (this.props.fontSize !== prevProps.fontSize) {
|
||||
this.props.clearConsole();
|
||||
this.props.dispatchConsoleEvent(this.props.consoleEvents);
|
||||
}
|
||||
|
@ -37,14 +37,14 @@ class Console extends React.Component {
|
|||
LOG_ERROR_ICON: `url(${errorLightUrl})`,
|
||||
LOG_DEBUG_ICON: `url(${debugLightUrl})`,
|
||||
LOG_INFO_ICON: `url(${infoLightUrl})`,
|
||||
BASE_FONT_SIZE: `${this.props.consoleFontSize}`
|
||||
BASE_FONT_SIZE: `${this.props.fontSize}`
|
||||
};
|
||||
const CONSOLE_FEED_DARK_ICONS = {
|
||||
LOG_WARN_ICON: `url(${warnDarkUrl})`,
|
||||
LOG_ERROR_ICON: `url(${errorDarkUrl})`,
|
||||
LOG_DEBUG_ICON: `url(${debugDarkUrl})`,
|
||||
LOG_INFO_ICON: `url(${infoDarkUrl})`,
|
||||
BASE_FONT_SIZE: `${this.props.consoleFontSize}`
|
||||
BASE_FONT_SIZE: `${this.props.fontSize}`
|
||||
};
|
||||
if (times > 1) {
|
||||
Object.assign(style, CONSOLE_FEED_WITHOUT_ICONS);
|
||||
|
|
|
@ -357,7 +357,7 @@ class IDEView extends React.Component {
|
|||
provideController={(ctl) => { this.cmController = ctl; }}
|
||||
/>
|
||||
<Console
|
||||
consoleFontSize={this.props.preferences.fontSize}
|
||||
fontSize={this.props.preferences.fontSize}
|
||||
consoleEvents={this.props.console}
|
||||
isExpanded={this.props.ide.consoleIsExpanded}
|
||||
expandConsole={this.props.expandConsole}
|
||||
|
|
Loading…
Reference in a new issue