mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Explore: Remove destructuring of empty state in LogRowMessage (#21579)
This commit is contained in:
parent
b2c235c46d
commit
e84a047a67
@ -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) => {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
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> {
|
|||||||
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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user