From cb3299d1efd76c4e0cae04b17611a5b548844a89 Mon Sep 17 00:00:00 2001 From: Rizky Date: Tue, 9 Jul 2024 21:29:26 -0700 Subject: [PATCH] fix --- comps/form/field/Field.tsx | 16 +++++++++++++-- comps/form/field/type/TypeInput.tsx | 8 +++++--- comps/form/field/type/TypeMoney.tsx | 31 ++++++++--------------------- 3 files changed, 27 insertions(+), 28 deletions(-) diff --git a/comps/form/field/Field.tsx b/comps/form/field/Field.tsx index a284a7c..5181f4e 100755 --- a/comps/form/field/Field.tsx +++ b/comps/form/field/Field.tsx @@ -36,7 +36,8 @@ export const Field: FC = (arg) => { delete props.className; return ( - + ); }; + +const LabelDiv = (arg: any) => { + const props = { ...arg }; + const mode = arg.mode; + delete props.mode; + + if (mode === "label") { + return