Skip to content

Commit

Permalink
Improve naming conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFarmer committed May 20, 2024
1 parent 1d7f2bc commit abd744c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/controls/NumericControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { InputNumber } from "../antd/InputNumber"
import { ControlUISchema } from "../ui-schema"
import { withJsonFormsControlProps } from "@jsonforms/react"

type NumericControlProps = Omit<JSFControlProps, "uischema"> & {
type ControlProps = Omit<JSFControlProps, "uischema"> & {
uischema: ControlUISchema<unknown> | JSFControlProps["uischema"]
}

export const NumericControl = (props: NumericControlProps) => {
export const NumericControl = (props: ControlProps) => {
if (!props.visible) return null

const initialValue =
Expand Down
4 changes: 2 additions & 2 deletions src/controls/NumericSliderControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import { Slider } from "../antd/Slider"
import { ControlUISchema } from "../ui-schema"
import { withJsonFormsControlProps } from "@jsonforms/react"

type NumericSliderControlProps = Omit<JSFControlProps, "uischema"> & {
type ControlProps = Omit<JSFControlProps, "uischema"> & {
uischema: ControlUISchema<unknown> | JSFControlProps["uischema"]
}

export const NumericSliderControl = (props: NumericSliderControlProps) => {
export const NumericSliderControl = (props: ControlProps) => {
if (!props.visible) return null

const initialValue =
Expand Down

0 comments on commit abd744c

Please sign in to comment.