Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFarmer committed May 20, 2024
1 parent fac3611 commit 66e6d5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/controls/BooleanControl.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
import {
ControlProps,
isDescriptionHidden,
} from "@jsonforms/core"
import { ControlProps, isDescriptionHidden } from "@jsonforms/core"
import { Form, FormItemProps } from "antd"
import { Checkbox } from "../antd/Checkbox"
import { withJsonFormsControlProps } from "@jsonforms/react"
Expand Down Expand Up @@ -42,7 +39,7 @@ export function BooleanControl({
const showTooltip =
!showDescription && !isDescriptionHidden(visible, description, true, true)
const formItemProps =
"formItemProps" in uischema ? uischema.formItemProps as FormItemProps : {}
"formItemProps" in uischema ? (uischema.formItemProps as FormItemProps) : {}
const tooltip = showTooltip && description ? description : undefined

return (
Expand Down
5 changes: 4 additions & 1 deletion src/controls/TextControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import type { ChangeEvent } from "react"
import { useCallback, useEffect } from "react"
import { Input, Form } from "antd"
import type { Rule } from "antd/es/form"
import type { ControlElement, ControlProps as JSFControlProps } from "@jsonforms/core"
import type {
ControlElement,
ControlProps as JSFControlProps,
} from "@jsonforms/core"

import type { ControlUISchema, TextControlOptions } from "../ui-schema"
import { assertNever } from "../common/assert-never"
Expand Down

0 comments on commit 66e6d5a

Please sign in to comment.