From 5ced4f02e9f2b655d61c9bef59fa0169a12a513d Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Mon, 30 Sep 2024 10:07:19 +0700
Subject: <iman> update if terdaftar, tipe bisnis hidden

---
 .../register/components/RegistrasiBisnis.tsx       | 28 ++++++++++++----------
 1 file changed, 15 insertions(+), 13 deletions(-)

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

diff --git a/src-migrate/modules/register/components/RegistrasiBisnis.tsx b/src-migrate/modules/register/components/RegistrasiBisnis.tsx
index ce4d3972..2a52170e 100644
--- a/src-migrate/modules/register/components/RegistrasiBisnis.tsx
+++ b/src-migrate/modules/register/components/RegistrasiBisnis.tsx
@@ -164,19 +164,21 @@ const RegistrasiBisnis: React.FC<FormProps> = ({
                   </Stack>
                 </RadioGroup>
               </div>
-              <div className='mt-4'>
-                <p className='text-black font-bold mb-2'>Tipe Bisnis</p>
-                <RadioGroup onChange={handleChange} value={selectedValue}>
-                  <Stack direction='row' className='font-bold'>
-                    <Radio colorScheme='red' value='PKP'>
-                      PKP
-                    </Radio>
-                    <Radio colorScheme='red' value='Non-PKP' className='ml-4'>
-                      Non-PKP
-                    </Radio>
-                  </Stack>
-                </RadioGroup>
-              </div>
+              {!isTerdaftar && (
+                <div className='mt-4'>
+                  <p className='text-black font-bold mb-2'>Tipe Bisnis</p>
+                  <RadioGroup onChange={handleChange} value={selectedValue}>
+                    <Stack direction='row' className='font-bold'>
+                      <Radio colorScheme='red' value='PKP'>
+                        PKP
+                      </Radio>
+                      <Radio colorScheme='red' value='Non-PKP' className='ml-4'>
+                        Non-PKP
+                      </Radio>
+                    </Stack>
+                  </RadioGroup>
+                </div>
+              )}
               <FormBisnis
                 type='bisnis'
                 required={isTerdaftar}
-- 
cgit v1.2.3

