From 2f106583f644e29019828a9e8ed82e23c7c67d0a Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Wed, 21 Aug 2024 10:01:27 +0700
Subject: <iman> update view new register

---
 .../modules/register/components/FormBisnis.tsx      | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

(limited to 'src-migrate/modules/register/components/FormBisnis.tsx')

diff --git a/src-migrate/modules/register/components/FormBisnis.tsx b/src-migrate/modules/register/components/FormBisnis.tsx
index 72921c2b..7b301dc5 100644
--- a/src-migrate/modules/register/components/FormBisnis.tsx
+++ b/src-migrate/modules/register/components/FormBisnis.tsx
@@ -59,15 +59,16 @@ const FormBisnis: React.FC<FormProps> = ({ type, required }) => {
   }, []);
 
   const selectedIndustry = watch('industry');
-
   useEffect(() => {
     const selected = industries.find(industry => industry.value === selectedIndustry);
+    console.log("selected",selected)
     if (selected) {
       setSelectedCategory(selected.category);
     }
   }, [selectedIndustry, industries]);
 
   const handleInputChange = (event: ChangeEvent<HTMLInputElement>) => {
+    console.log("event",event)
     const { name, value } = event.target;
     updateFormBisnis(name, value);
     validateFormBisnis();
@@ -135,7 +136,7 @@ const FormBisnis: React.FC<FormProps> = ({ type, required }) => {
   return (
     <form className="mt-6 grid grid-cols-1 gap-y-4" onSubmit={handleSubmit}>
       <div>
-        <label htmlFor='email'>Email Bisnis</label>
+        <label htmlFor='email' className="font-bold">Email Bisnis</label>
 
         <input
           type='text'
@@ -153,8 +154,8 @@ const FormBisnis: React.FC<FormProps> = ({ type, required }) => {
       </div>
 
       <div>
-        <label htmlFor="company">
-          Nama Bisnis <span className='text-gray_r-11'>(opsional)</span>
+        <label className="font-bold" htmlFor="company">
+          Nama Bisnis
         </label>
         <div className="flex justify-between items-center gap-2 h-12">
           <div className='w-4/5 pr-1'>
@@ -178,8 +179,8 @@ const FormBisnis: React.FC<FormProps> = ({ type, required }) => {
       </div>
 
       <div className="">
-        <label htmlFor="company">
-          Klasifikasi Jenis Usaha <span className='text-gray_r-11'>(opsional)</span>
+        <label className="font-bold" htmlFor="company">
+          Klasifikasi Jenis Usaha
         </label>
         <Controller
           name='industry'
@@ -190,7 +191,7 @@ const FormBisnis: React.FC<FormProps> = ({ type, required }) => {
       </div>
 
       <div>
-        <label htmlFor='name'>Nama Wajib Pajak</label>
+        <label htmlFor='name' className="font-bold">Nama Wajib Pajak</label>
 
         <input
           type='text'
@@ -207,7 +208,7 @@ const FormBisnis: React.FC<FormProps> = ({ type, required }) => {
       </div>
 
       <div>
-        <label htmlFor='phone'>Nomor NPWP</label>
+        <label htmlFor='phone' className="font-bold">Nomor NPWP</label>
 
         <input
           type='tel'
@@ -224,7 +225,7 @@ const FormBisnis: React.FC<FormProps> = ({ type, required }) => {
       </div>
 
       <div>
-        <label htmlFor="document">Dokumen NPWP (opsional)</label>
+        <label htmlFor="document" className="font-bold">Dokumen NPWP</label>
 
         <input
           type="file"
@@ -239,7 +240,7 @@ const FormBisnis: React.FC<FormProps> = ({ type, required }) => {
       </div>
 
       <div>
-        <label htmlFor="document">Dokumen SPPKP (opsional)</label>
+        <label htmlFor="document" className="font-bold">Dokumen SPPKP</label>
 
         <input
           type="file"
-- 
cgit v1.2.3

