Skip to content

Commit

Permalink
remove unused fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Jul 21, 2020
1 parent 0e660ba commit 7f98197
Showing 1 changed file with 28 additions and 30 deletions.
58 changes: 28 additions & 30 deletions x-pack/plugins/lens/public/xy_visualization/xy_config_panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,37 +160,35 @@ export function XyToolbar(props: VisualizationToolbarProps<State>) {
})
}
>
<>
<EuiFormRow
display="columnCompressed"
label={i18n.translate('xpack.lens.xyChart.fittingLabel', {
defaultMessage: 'Fill missing values',
<EuiFormRow
display="columnCompressed"
label={i18n.translate('xpack.lens.xyChart.fittingLabel', {
defaultMessage: 'Fill missing values',
})}
>
<EuiSuperSelect
compressed
disabled={!hasNonBarSeries}
options={fittingFunctionDefinitions.map(({ id, title, description }) => {
return {
value: id,
dropdownDisplay: (
<>
<strong>{title}</strong>
<EuiText size="xs" color="subdued">
<p>{description}</p>
</EuiText>
</>
),
inputDisplay: title,
};
})}
>
<EuiSuperSelect
compressed
disabled={!hasNonBarSeries}
options={fittingFunctionDefinitions.map(({ id, title, description }) => {
return {
value: id,
dropdownDisplay: (
<>
<strong>{title}</strong>
<EuiText size="xs" color="subdued">
<p>{description}</p>
</EuiText>
</>
),
inputDisplay: title,
};
})}
valueOfSelected={props.state?.fittingFunction || 'None'}
onChange={(value) => props.setState({ ...props.state, fittingFunction: value })}
itemLayoutAlign="top"
hasDividers
/>
</EuiFormRow>
</>
valueOfSelected={props.state?.fittingFunction || 'None'}
onChange={(value) => props.setState({ ...props.state, fittingFunction: value })}
itemLayoutAlign="top"
hasDividers
/>
</EuiFormRow>
</EuiToolTip>
<EuiHorizontalRule margin="s" />
<EuiFormRow
Expand Down

0 comments on commit 7f98197

Please sign in to comment.