Skip to content

Commit

Permalink
Layout, round 1
Browse files Browse the repository at this point in the history
  • Loading branch information
madirey committed Jan 14, 2021
1 parent a4139ce commit b73b34a
Showing 1 changed file with 33 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import React, { useMemo } from 'react';
import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
import { EuiButton, EuiFlexGroup, EuiFlexItem, EuiFormRow, EuiSpacer } from '@elastic/eui';
import styled from 'styled-components';

import { BrowserFields } from '../../../../common/containers/source';
Expand Down Expand Up @@ -52,27 +52,38 @@ const ThresholdInputComponent: React.FC<ThresholdInputProps> = ({
);

return (
<EuiFlexGroup>
<EuiFlexItem grow={false}>
<Field
field={thresholdField}
idAria="detectionEngineStepDefineRuleThresholdField"
data-test-subj="detectionEngineStepDefineRuleThresholdField"
describedByIds={fieldDescribedByIds}
type={thresholdField.type}
euiFieldProps={fieldEuiFieldProps}
/>
</EuiFlexItem>
<OperatorWrapper grow={false}>{'>='}</OperatorWrapper>
<EuiFlexItem grow={false}>
<Field
field={thresholdValue}
idAria="detectionEngineStepDefineRuleThresholdValue"
data-test-subj="detectionEngineStepDefineRuleThresholdValue"
describedByIds={valueDescribedByIds}
type={thresholdValue.type}
/>
</EuiFlexItem>
<EuiFlexGroup direction="column" style={{ marginLeft: 0 }}>
<EuiFlexGroup>
<EuiFlexItem grow={false}>
<Field
field={thresholdField}
idAria="detectionEngineStepDefineRuleThresholdField"
data-test-subj="detectionEngineStepDefineRuleThresholdField"
describedByIds={fieldDescribedByIds}
type={thresholdField.type}
euiFieldProps={fieldEuiFieldProps}
/>
</EuiFlexItem>
<OperatorWrapper grow={false}>{'>='}</OperatorWrapper>
<EuiFlexItem grow={false}>
<Field
field={thresholdValue}
idAria="detectionEngineStepDefineRuleThresholdValue"
data-test-subj="detectionEngineStepDefineRuleThresholdValue"
describedByIds={valueDescribedByIds}
type={thresholdValue.type}
/>
</EuiFlexItem>
</EuiFlexGroup>
<EuiFlexGroup>
<EuiFlexItem grow={false}>
<EuiButton>{'Add Aggregation'}</EuiButton>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButton>{'Specify Cardinality'}</EuiButton>
</EuiFlexItem>
</EuiFlexGroup>
<EuiSpacer />
</EuiFlexGroup>
);
};
Expand Down

0 comments on commit b73b34a

Please sign in to comment.