Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
vanessavmac committed Dec 17, 2024
1 parent 149f4cf commit a70a325
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
5 changes: 1 addition & 4 deletions ui/src/pages/overview/backends/connection-status.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { FormRow } from 'components/form/layout/layout'
import { useTestBackendConnection } from 'data-services/hooks/backends/useTestBackendConnection'
import { InputContent, InputValue } from 'design-system/components/input/input'
import { Tooltip } from 'design-system/components/tooltip/tooltip'
import { InputValue } from 'design-system/components/input/input'
import * as Wizard from 'design-system/components/wizard/wizard'
import { useEffect, useState } from 'react'
import { getFormatedDateTimeString } from 'utils/date/getFormatedDateTimeString/getFormatedDateTimeString'
Expand All @@ -12,14 +11,12 @@ import styles from './backends.module.scss'

export const ConnectionStatus = ({
regex,
showDetails,
backendId,
subdir,
updatedAt,
onConnectionChange,
}: {
regex?: string
showDetails?: boolean
backendId: string
subdir?: string
updatedAt?: string
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { FormController } from 'components/form/form-controller'
import { FormField } from 'components/form/form-field'
import {
FormActions,
Expand All @@ -10,16 +9,8 @@ import { FormConfig } from 'components/form/types'
import { Backend } from 'data-services/models/backend'
import { Button, ButtonTheme } from 'design-system/components/button/button'
import { IconType } from 'design-system/components/icon/icon'
import { Input, LockedInput } from 'design-system/components/input/input'
import { ConnectionStatus } from 'pages/overview/backends/connection-status'
import { useState } from 'react'
import {
ControllerFieldState,
ControllerRenderProps,
FieldPath,
FieldValues,
useForm,
} from 'react-hook-form'
import { useForm } from 'react-hook-form'
import { STRING, translate } from 'utils/language'
import { useFormError } from 'utils/useFormError'
import { DetailsFormProps, FormValues } from './types'
Expand Down Expand Up @@ -47,7 +38,6 @@ export const BackendDetailsForm = ({
control,
handleSubmit,
setError: setFieldError,
setFocus,
} = useForm<BackendFormValues>({
defaultValues: {
endpoint_url: backend?.endpointUrl,
Expand Down Expand Up @@ -86,7 +76,7 @@ export const BackendDetailsForm = ({
</FormRow>
{backend?.id && (
<ConnectionStatus
backendId={backend.id}
backendId={backend.id}
updatedAt={backend.updatedAtDetailed}
/>
)}
Expand All @@ -103,4 +93,3 @@ export const BackendDetailsForm = ({
</form>
)
}

0 comments on commit a70a325

Please sign in to comment.