updates
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
"use client"
|
||||
|
||||
import type { BaseFieldControlProps } from "../types"
|
||||
import { Checkbox } from "@/shared/components/ui/checkbox"
|
||||
import { Switch } from "@/shared/components/ui/switch"
|
||||
|
||||
export type CheckboxFieldProps = BaseFieldControlProps<boolean> & {
|
||||
label?: string
|
||||
@@ -16,7 +16,7 @@ export function CheckboxField({
|
||||
invalid,
|
||||
}: CheckboxFieldProps) {
|
||||
return (
|
||||
<Checkbox
|
||||
<Switch
|
||||
checked={value}
|
||||
onCheckedChange={(checked) => onChange(checked === true)}
|
||||
onBlur={onBlur}
|
||||
|
||||
Reference in New Issue
Block a user