From 3ab2c01595b12534b68064d673f1c50c96d3450c Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Mon, 3 Apr 2023 09:22:55 +0700
Subject: tnd

---
 src/lib/auth/components/RegisterMobile.jsx | 24 ++++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)

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

diff --git a/src/lib/auth/components/RegisterMobile.jsx b/src/lib/auth/components/RegisterMobile.jsx
index 007b127c..11935439 100644
--- a/src/lib/auth/components/RegisterMobile.jsx
+++ b/src/lib/auth/components/RegisterMobile.jsx
@@ -4,6 +4,8 @@ import Image from 'next/image'
 import Link from '@/core/components/elements/Link/Link'
 import useRegister from '../hooks/useRegister'
 import MobileView from '@/core/components/views/MobileView'
+import BottomPopup from '@/core/components/elements/Popup/BottomPopup'
+import PageContent from '@/lib/content/components/PageContent'
 
 const RegisterMobile = () => {
   const {
@@ -15,7 +17,9 @@ const RegisterMobile = () => {
     companyNameRef,
     fullnameRef,
     emailRef,
-    passwordRef
+    passwordRef,
+    tnd,
+    setTnd
   } = useRegister()
 
   return (
@@ -89,12 +93,28 @@ const RegisterMobile = () => {
               placeholder='••••••••••••'
             />
           </div>
-
+          <div class='flex items-center mt-4 '>
+            <input
+              type='checkbox'
+              id='sdk'
+              className='form-input flex items-start w-fit mr-2'
+              required
+            />
+            <label onClick={() => setTnd(true)} className='inline cursor-pointer text-red_r-10'>
+              Syarat dan Ketentuan
+            </label>
+          </div>
           <button type='submit' className='btn-yellow w-full mt-2' disabled={!isValid || isLoading}>
             {!isLoading ? 'Daftar' : 'Loading...'}
           </button>
         </form>
 
+        <div>
+          <BottomPopup active={tnd} close={() => setTnd(false)}>
+            <PageContent path='/register#tnd'></PageContent>
+          </BottomPopup>
+        </div>
+        
         <div className='text-gray_r-11 mt-4'>
           Sudah punya akun Indoteknik?{' '}
           <Link href='/login' className='inline'>
-- 
cgit v1.2.3

