Skip to content

Commit 43c0c9a

Browse files
committed
wrap the checkbox in form field
1 parent 6f67f58 commit 43c0c9a

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

redisinsight/ui/src/pages/home/components/form/SSHDetails.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,16 @@ const SSHDetails = (props: Props) => {
5353
align={!flexGroupClassName ? 'end' : undefined}
5454
>
5555
<FlexItem style={{ width: '230px' }} className={flexItemClassName}>
56-
<Checkbox
57-
id={id}
58-
name="ssh"
59-
label={<Text>Use SSH Tunnel</Text>}
60-
checked={!!formik.values.ssh}
61-
onChange={formik.handleChange}
62-
data-testid="use-ssh"
63-
/>
56+
<FormField>
57+
<Checkbox
58+
id={id}
59+
name="ssh"
60+
label={<Text>Use SSH Tunnel</Text>}
61+
checked={!!formik.values.ssh}
62+
onChange={formik.handleChange}
63+
data-testid="use-ssh"
64+
/>
65+
</FormField>
6466
</FlexItem>
6567
</Row>
6668

redisinsight/ui/src/pages/home/components/form/TlsDetails.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,17 @@ const TlsDetails = (props: Props) => {
187187
return (
188188
<>
189189
<Row gap="m">
190-
<FlexItem grow={1}>
191-
<Checkbox
192-
id={sslId}
193-
name="tls"
194-
label={<Text>Use TLS</Text>}
195-
checked={!!formik.values.tls}
196-
onChange={formik.handleChange}
197-
data-testid="tls"
198-
/>
190+
<FlexItem>
191+
<FormField>
192+
<Checkbox
193+
id={sslId}
194+
name="tls"
195+
label={<Text>Use TLS</Text>}
196+
checked={!!formik.values.tls}
197+
onChange={formik.handleChange}
198+
data-testid="tls"
199+
/>
200+
</FormField>
199201
</FlexItem>
200202
</Row>
201203

0 commit comments

Comments
 (0)