From 92c2a229d9c9b510d71b928978872a8b107e9d5a Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Tue, 11 Apr 2023 09:47:25 +0700
Subject: Documentation and refactor code

---
 src/lib/auth/components/CompanyProfile.jsx | 37 +++++-------------------------
 1 file changed, 6 insertions(+), 31 deletions(-)

(limited to 'src/lib/auth/components/CompanyProfile.jsx')

diff --git a/src/lib/auth/components/CompanyProfile.jsx b/src/lib/auth/components/CompanyProfile.jsx
index 1b25551e..854aa246 100644
--- a/src/lib/auth/components/CompanyProfile.jsx
+++ b/src/lib/auth/components/CompanyProfile.jsx
@@ -69,11 +69,7 @@ const CompanyProfile = () => {
 
   return (
     <>
-      <button
-        type='button'
-        onClick={toggle}
-        className='p-4 flex items-center text-left'
-      >
+      <button type='button' onClick={toggle} className='p-4 flex items-center text-left'>
         <div>
           <div className='font-semibold mb-2'>Informasi Usaha</div>
           <div className='text-gray_r-11'>
@@ -96,12 +92,7 @@ const CompanyProfile = () => {
             <Controller
               name='industry'
               control={control}
-              render={(props) => (
-                <HookFormSelect
-                  {...props}
-                  options={industries}
-                />
-              )}
+              render={(props) => <HookFormSelect {...props} options={industries} />}
             />
           </div>
           <div className='flex flex-wrap'>
@@ -110,12 +101,7 @@ const CompanyProfile = () => {
               <Controller
                 name='companyType'
                 control={control}
-                render={(props) => (
-                  <HookFormSelect
-                    {...props}
-                    options={companyTypes}
-                  />
-                )}
+                render={(props) => <HookFormSelect {...props} options={companyTypes} />}
               />
             </div>
             <div className='w-9/12 pl-1'>
@@ -129,24 +115,13 @@ const CompanyProfile = () => {
           </div>
           <div>
             <label>Nama Wajib Pajak</label>
-            <input
-              {...register('taxName')}
-              type='text'
-              className='form-input mt-3'
-            />
+            <input {...register('taxName')} type='text' className='form-input mt-3' />
           </div>
           <div>
             <label>Nomor NPWP</label>
-            <input
-              {...register('npwp')}
-              type='text'
-              className='form-input mt-3'
-            />
+            <input {...register('npwp')} type='text' className='form-input mt-3' />
           </div>
-          <button
-            type='submit'
-            className='btn-yellow w-full mt-2'
-          >
+          <button type='submit' className='btn-yellow w-full mt-2'>
             Simpan
           </button>
         </form>
-- 
cgit v1.2.3

