This commit is contained in:
rizky 2024-08-02 03:47:03 -07:00
parent 107fe48f79
commit 6c0e4b671b
4 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ export const BaseField = (prop: {
<div className="field-input c-flex c-flex-1 c-flex-col">
<div
className={cx(
!["toogle", "button", "radio", "checkbox"].includes(arg.sub_type)
!["toggle", "button", "radio", "checkbox"].includes(arg.sub_type)
? cx(
"field-outer c-overflow-hidden c-flex-1 c-flex c-flex-row c-text-sm c-bg-white",
"c-rounded "

View File

@ -108,7 +108,7 @@ export const FieldInput: FC<{
return (
<div
className={cx(
!["toogle", "button", "radio", "checkbox"].includes(arg.sub_type)
!["toggle", "button", "radio", "checkbox"].includes(arg.sub_type)
? cx(
"field-outer c-overflow-hidden c-flex-1 c-flex c-flex-row c-text-sm c-bg-white",
"c-rounded "

View File

@ -16,7 +16,7 @@ export const SingleOption: FC<{
<>
{arg.sub_type === "dropdown" ? (
<TypeDropdown arg={arg} field={field} fm={fm} />
) : arg.sub_type === "toogle" ? (
) : arg.sub_type === "toggle" ? (
<FieldToggle arg={arg} field={field} fm={fm} />
) : arg.sub_type === "button" ? (
<FieldButton arg={arg} field={field} fm={fm} />

View File

@ -92,7 +92,7 @@ export const newField = async (
}`,
],
type: "single-option",
sub_type: "toogle",
sub_type: "toggle",
ext__on_change: opt.on_change
? [opt.on_change, opt.on_change]
: undefined,