Skip to content

Commit

Permalink
Remove one more inline field
Browse files Browse the repository at this point in the history
  • Loading branch information
aangelisc committed Sep 20, 2023
1 parent 046b8db commit 563c3d4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/views/CHConfigEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
onUpdateDatasourceJsonDataOption,
onUpdateDatasourceSecureJsonDataOption,
} from '@grafana/data';
import { RadioButtonGroup, Switch, Input, Field, SecretInput, Button, InlineField, InlineFieldRow } from '@grafana/ui';
import { RadioButtonGroup, Switch, Input, SecretInput, Button, Field, HorizontalGroup } from '@grafana/ui';
import { CertificationKey } from '../components/ui/CertificationKey';
import { Components } from './../selectors';
import { CHConfig, CHCustomSetting, CHSecureConfig, Protocol } from './../types';
Expand Down Expand Up @@ -357,8 +357,8 @@ export const ConfigEditor: React.FC<Props> = (props) => {
<ConfigSubSection title="Custom Settings">
{customSettings.map(({ setting, value }, i) => {
return (
<InlineFieldRow key={i}>
<InlineField label={`Setting`} aria-label={`Setting`}>
<HorizontalGroup key={i}>
<Field label={`Setting`} aria-label={`Setting`}>
<Input
value={setting}
placeholder={'Setting'}
Expand All @@ -371,8 +371,8 @@ export const ConfigEditor: React.FC<Props> = (props) => {
onCustomSettingsChange(customSettings);
}}
></Input>
</InlineField>
<InlineField label={'Value'} aria-label={`Value`}>
</Field>
<Field label={'Value'} aria-label={`Value`}>
<Input
value={value}
placeholder={'Value'}
Expand All @@ -385,8 +385,8 @@ export const ConfigEditor: React.FC<Props> = (props) => {
onCustomSettingsChange(customSettings);
}}
></Input>
</InlineField>
</InlineFieldRow>
</Field>
</HorizontalGroup>
);
})}
<Button
Expand Down

0 comments on commit 563c3d4

Please sign in to comment.