diff --git a/src/app/uniformity/add/page.tsx b/src/app/uniformity/add/page.tsx new file mode 100644 index 00000000..9931eebe --- /dev/null +++ b/src/app/uniformity/add/page.tsx @@ -0,0 +1,9 @@ +'use client'; + +import UniformityForm from '@/components/pages/uniformity/form/UniformityForm'; + +const AddUniformity = () => { + return ; +}; + +export default AddUniformity; diff --git a/src/components/pages/uniformity/form/UniformityForm.schema.ts b/src/components/pages/uniformity/form/UniformityForm.schema.ts new file mode 100644 index 00000000..e69de29b diff --git a/src/components/pages/uniformity/form/UniformityForm.tsx b/src/components/pages/uniformity/form/UniformityForm.tsx new file mode 100644 index 00000000..02fa4207 --- /dev/null +++ b/src/components/pages/uniformity/form/UniformityForm.tsx @@ -0,0 +1,53 @@ +'use client'; + +import { useEffect } from 'react'; +import DrawerHeader from '@/components/helper/drawer/DrawerHeader'; +import { useUiStore } from '@/stores/ui/ui.store'; + +interface UniformityFormProps { + formType?: 'add' | 'edit'; +} + +const UniformityForm = ({ formType = 'add' }: UniformityFormProps) => { + const subscribeValidate = useUiStore((s) => s.subscribeValidate); + const setIsValid = useUiStore((s) => s.setIsValid); + + useEffect(() => { + const unsub = subscribeValidate(() => { + setIsValid(true); + }); + + return unsub; + }, []); + + return ( + <> +
+ {/* Header */} + + {/* Form Section */} +
+
+

Informasi Umum

+
{ + e.preventDefault(); + }} + >
+
+
+ + ); +}; + +export default UniformityForm;