Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
masonwoodford committed May 21, 2024
1 parent 396ba8f commit 73f51a4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {useState} from 'react';
import React, { useState } from 'react';
import { useFormContext } from 'react-hook-form';
import { AUTH_OPTIONS, SECURITY_PROTOCOL_OPTIONS } from 'lib/constants';
import ControlledSelect from 'components/common/Select/ControlledSelect';
Expand Down
5 changes: 4 additions & 1 deletion frontend/src/widgets/ClusterConfigForm/Sections/KSQL.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ const KSQL = () => {
const [configOpen, setConfigOpen] = useState(false);
const toggleConfig = () => {
setConfigOpen((prevConfigOpen) => !prevConfigOpen);
setValue('ksql', ksql ? { isActive: false } : { isActive: false, url: '', isAuth: false }, {
setValue(
'ksql',
ksql ? { isActive: false } : { isActive: false, url: '', isAuth: false },
{
shouldValidate: true,
shouldDirty: true,
shouldTouch: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {useState} from 'react';
import React, { useState } from 'react';
import Input from 'components/common/Input/Input';
import { useFieldArray, useFormContext } from 'react-hook-form';
import { FormError, InputHint } from 'components/common/Input/Input.styled';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {useState} from 'react';
import React, { useState } from 'react';
import Input from 'components/common/Input/Input';
import { useFormContext } from 'react-hook-form';
import ControlledSelect from 'components/common/Select/ControlledSelect';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import { useState } from 'react';
import React, { useState } from 'react';
import Input from 'components/common/Input/Input';
import { useFormContext } from 'react-hook-form';
import SectionHeader from 'widgets/ClusterConfigForm/common/SectionHeader';
Expand All @@ -12,7 +11,12 @@ const SchemaRegistry = () => {
const [configOpen, setConfigOpen] = useState(false);
const toggleConfig = () => {
setConfigOpen((prevConfigOpen) => !prevConfigOpen);
setValue('schemaRegistry', schemaRegistry ? { isActive: false }: { isActive: true, url: '', isAuth: false }, {
setValue(
'schemaRegistry',
schemaRegistry
? { isActive: false }
: { isActive: true, url: '', isAuth: false },
{
shouldValidate: true,
shouldDirty: true,
shouldTouch: true,
Expand Down

0 comments on commit 73f51a4

Please sign in to comment.