Skip to content

Commit

Permalink
Use EuiCompressedSwitch
Browse files Browse the repository at this point in the history
Signed-off-by: Miki <[email protected]>
  • Loading branch information
AMoo-Miki committed Aug 1, 2024
1 parent ee92b80 commit 11aa1d6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions public/components/options_editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
EuiPanel,
EuiCompressedSelect,
EuiSpacer,
EuiSwitch,
EuiCompressedSwitch,
EuiTitle,
} from '@elastic/eui';
import React from 'react';
Expand All @@ -37,7 +37,7 @@ export function OptionsEditor({ aggs, stateParams, setValue }: VisOptionsProps<G
<EuiSpacer size="s" />

<EuiCompressedFormRow>
<EuiSwitch
<EuiCompressedSwitch
data-test-subj="options-editor-legend-switch"
label="Show legend"
checked={stateParams.showLegend}
Expand Down Expand Up @@ -71,15 +71,15 @@ export function OptionsEditor({ aggs, stateParams, setValue }: VisOptionsProps<G
<EuiSpacer size="s" />

<EuiCompressedFormRow>
<EuiSwitch
<EuiCompressedSwitch
data-test-subj="options-editor-grid-y-switch"
label="Show Y-axis grids"
checked={stateParams.yAxisShowGrid}
onChange={(e) => setValue('yAxisShowGrid', e.target.checked)}
/>
</EuiCompressedFormRow>
<EuiCompressedFormRow>
<EuiSwitch
<EuiCompressedSwitch
data-test-subj="options-editor-grid-x-switch"
label="Show X-axis grids"
checked={stateParams.xAxisShowGrid}
Expand Down Expand Up @@ -148,15 +148,15 @@ export function OptionsEditor({ aggs, stateParams, setValue }: VisOptionsProps<G
</EuiCompressedFormRow>

<EuiCompressedFormRow>
<EuiSwitch
<EuiCompressedSwitch
data-test-subj="options-editor-y-axis-switch"
label="Show Y-axis line"
checked={stateParams.yAxisShowLine}
onChange={(e) => setValue('yAxisShowLine', e.target.checked)}
/>
</EuiCompressedFormRow>
<EuiCompressedFormRow>
<EuiSwitch
<EuiCompressedSwitch
data-test-subj="options-editor-y-axis-label-switch"
label="Show Y-axis label"
checked={stateParams.yAxisShowTitle}
Expand Down Expand Up @@ -212,15 +212,15 @@ export function OptionsEditor({ aggs, stateParams, setValue }: VisOptionsProps<G
</EuiCompressedFormRow>

<EuiCompressedFormRow>
<EuiSwitch
<EuiCompressedSwitch
data-test-subj="options-editor-x-axis-switch"
label="Show X-axis line"
checked={stateParams.xAxisShowLine}
onChange={(e) => setValue('xAxisShowLine', e.target.checked)}
/>
</EuiCompressedFormRow>
<EuiCompressedFormRow>
<EuiSwitch
<EuiCompressedSwitch
data-test-subj="options-editor-x-axis-label-switch"
label="Show X-axis label"
checked={stateParams.xAxisShowTitle}
Expand Down

0 comments on commit 11aa1d6

Please sign in to comment.