Skip to content

Commit 73f51a4

Browse files
committed
fix linting
1 parent 396ba8f commit 73f51a4

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

frontend/src/widgets/ClusterConfigForm/Sections/Authentication/Authentication.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {useState} from 'react';
1+
import React, { useState } from 'react';
22
import { useFormContext } from 'react-hook-form';
33
import { AUTH_OPTIONS, SECURITY_PROTOCOL_OPTIONS } from 'lib/constants';
44
import ControlledSelect from 'components/common/Select/ControlledSelect';

frontend/src/widgets/ClusterConfigForm/Sections/KSQL.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ const KSQL = () => {
1111
const [configOpen, setConfigOpen] = useState(false);
1212
const toggleConfig = () => {
1313
setConfigOpen((prevConfigOpen) => !prevConfigOpen);
14-
setValue('ksql', ksql ? { isActive: false } : { isActive: false, url: '', isAuth: false }, {
14+
setValue(
15+
'ksql',
16+
ksql ? { isActive: false } : { isActive: false, url: '', isAuth: false },
17+
{
1518
shouldValidate: true,
1619
shouldDirty: true,
1720
shouldTouch: true,

frontend/src/widgets/ClusterConfigForm/Sections/KafkaCluster.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {useState} from 'react';
1+
import React, { useState } from 'react';
22
import Input from 'components/common/Input/Input';
33
import { useFieldArray, useFormContext } from 'react-hook-form';
44
import { FormError, InputHint } from 'components/common/Input/Input.styled';

frontend/src/widgets/ClusterConfigForm/Sections/Metrics.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {useState} from 'react';
1+
import React, { useState } from 'react';
22
import Input from 'components/common/Input/Input';
33
import { useFormContext } from 'react-hook-form';
44
import ControlledSelect from 'components/common/Select/ControlledSelect';

frontend/src/widgets/ClusterConfigForm/Sections/SchemaRegistry.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import React from 'react';
2-
import { useState } from 'react';
1+
import React, { useState } from 'react';
32
import Input from 'components/common/Input/Input';
43
import { useFormContext } from 'react-hook-form';
54
import SectionHeader from 'widgets/ClusterConfigForm/common/SectionHeader';
@@ -12,7 +11,12 @@ const SchemaRegistry = () => {
1211
const [configOpen, setConfigOpen] = useState(false);
1312
const toggleConfig = () => {
1413
setConfigOpen((prevConfigOpen) => !prevConfigOpen);
15-
setValue('schemaRegistry', schemaRegistry ? { isActive: false }: { isActive: true, url: '', isAuth: false }, {
14+
setValue(
15+
'schemaRegistry',
16+
schemaRegistry
17+
? { isActive: false }
18+
: { isActive: true, url: '', isAuth: false },
19+
{
1620
shouldValidate: true,
1721
shouldDirty: true,
1822
shouldTouch: true,

0 commit comments

Comments
 (0)