Skip to content

Commit

Permalink
Typing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFarmer committed May 20, 2024
1 parent d069048 commit 54be81e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/controls/TextControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@ import type { ChangeEvent } from "react"
import { useCallback, useEffect } from "react"
import { Input, Form } from "antd"
import type { Rule } from "antd/es/form"
import type { TextAreaProps } from "antd/es/input"
import type { ControlElement, ControlProps } from "@jsonforms/core"

import type {
ControlUISchema,
TextControlOptions,
TextControlType,
} from "../ui-schema"
import type { ControlUISchema, TextControlOptions } from "../ui-schema"
import { assertNever } from "../common/assert-never"
import { withJsonFormsControlProps } from "@jsonforms/react"
interface TextControlProps extends ControlProps {
Expand Down Expand Up @@ -43,7 +38,6 @@ export function TextControl({
const ariaLabel = label || schema.description
const options: TextControlOptions =
(uiSchema.options as TextControlOptions) ?? {}
const textControlType: TextControlType = options.type ?? "singleline"
const formItemProps = uiSchema.formItemProps ?? {}
const tooltip = options.tooltip ? options.tooltip : formItemProps.tooltip
const placeholderText = options.placeholderText
Expand Down

0 comments on commit 54be81e

Please sign in to comment.