Skip to content

Commit

Permalink
Change case in variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaindik committed May 18, 2023
1 parent 00bdb9e commit 1c86679
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Expand Up @@ -109,7 +109,7 @@ export const EXECUTION_LOG_COLUMNS: Array<EuiBasicTableColumn<RuleExecutionResul
},
];

export const GET_MESSAGE_COLUMN = (width: string) => ({
export const getMessageColumn = (width: string) => ({
field: 'security_message',
name: (
<TableHeaderTooltipCell
Expand Down Expand Up @@ -139,7 +139,7 @@ export const GET_MESSAGE_COLUMN = (width: string) => ({
width,
});

export const GET_EXECUTION_LOG_METRICS_COLUMNS = (
export const getExecutionLogMetricsColumns = (
docLinks: DocLinksStart
): Array<EuiBasicTableColumn<RuleExecutionResult>> => [
{
Expand Down
Expand Up @@ -66,8 +66,8 @@ import { TextBlock } from '../../../../rule_monitoring/components/basic/text/tex
import * as i18n from './translations';
import {
EXECUTION_LOG_COLUMNS,
GET_MESSAGE_COLUMN,
GET_EXECUTION_LOG_METRICS_COLUMNS,
getMessageColumn,
getExecutionLogMetricsColumns,
expanderColumn,
} from './execution_log_columns';
import { ExecutionLogSearchBar } from './execution_log_search_bar';
Expand Down Expand Up @@ -422,9 +422,9 @@ const ExecutionLogTableComponent: React.FC<ExecutionLogTableProps> = ({
const columns = [...EXECUTION_LOG_COLUMNS];

if (showMetricColumns) {
columns.push(GET_MESSAGE_COLUMN('20%'), ...GET_EXECUTION_LOG_METRICS_COLUMNS(docLinks));
columns.push(getMessageColumn('20%'), ...getExecutionLogMetricsColumns(docLinks));
} else {
columns.push(GET_MESSAGE_COLUMN('50%'));
columns.push(getMessageColumn('50%'));
}

columns.push(
Expand Down

0 comments on commit 1c86679

Please sign in to comment.