Commit e84a047a by Ivana Huckova Committed by GitHub

Explore: Remove destructuring of empty state in LogRowMessage (#21579)

parent b2c235c4
...@@ -30,8 +30,6 @@ interface Props extends Themeable { ...@@ -30,8 +30,6 @@ interface Props extends Themeable {
updateLimit?: () => void; updateLimit?: () => void;
} }
interface State {}
const getStyles = stylesFactory((theme: GrafanaTheme) => { const getStyles = stylesFactory((theme: GrafanaTheme) => {
const outlineColor = selectThemeVariant( const outlineColor = selectThemeVariant(
{ {
...@@ -65,7 +63,7 @@ const getStyles = stylesFactory((theme: GrafanaTheme) => { ...@@ -65,7 +63,7 @@ const getStyles = stylesFactory((theme: GrafanaTheme) => {
}; };
}); });
class UnThemedLogRowMessage extends PureComponent<Props, State> { class UnThemedLogRowMessage extends PureComponent<Props> {
onContextToggle = (e: React.SyntheticEvent<HTMLElement>) => { onContextToggle = (e: React.SyntheticEvent<HTMLElement>) => {
e.stopPropagation(); e.stopPropagation();
this.props.onToggleContext(); this.props.onToggleContext();
...@@ -84,7 +82,7 @@ class UnThemedLogRowMessage extends PureComponent<Props, State> { ...@@ -84,7 +82,7 @@ class UnThemedLogRowMessage extends PureComponent<Props, State> {
wrapLogMessage, wrapLogMessage,
onToggleContext, onToggleContext,
} = this.props; } = this.props;
const {} = this.state;
const style = getLogRowStyles(theme, row.logLevel); const style = getLogRowStyles(theme, row.logLevel);
const { entry, hasAnsi, raw } = row; const { entry, hasAnsi, raw } = row;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment