Skip to content

Commit

Permalink
Support sentence case names for known processors (#74847)
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Aug 12, 2020
1 parent fb2b9a4 commit 0e5ac40
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@
import React, { FunctionComponent, memo } from 'react';
import { EuiPanel, EuiFlexGroup, EuiFlexItem, EuiText } from '@elastic/eui';
import { ProcessorInternal } from '../../types';
import { getProcessorDescriptor } from '../shared';

interface Props {
processor: ProcessorInternal;
}

export const ProcessorInformation: FunctionComponent<Props> = memo(({ processor }) => {
const label = getProcessorDescriptor(processor.type)?.label ?? processor.type;
return (
<EuiPanel>
<EuiFlexGroup justifyContent="center" alignItems="center" responsive={false} gutterSize="s">
<EuiFlexItem grow={false}>
<b>{processor.type}</b>
<b>{label}</b>
</EuiFlexItem>
{processor.options.description ? (
<EuiFlexItem grow={false}>
Expand Down

0 comments on commit 0e5ac40

Please sign in to comment.