From cb083185ce59df7143ea258e147a118a1e416e56 Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Mon, 20 Jan 2025 10:33:19 +0700 Subject: update merchant --- src/lib/merchant/components/Merchant.jsx | 54 ++++++++++++++++++++++---------- 1 file changed, 38 insertions(+), 16 deletions(-) (limited to 'src/lib/merchant/components/Merchant.jsx') diff --git a/src/lib/merchant/components/Merchant.jsx b/src/lib/merchant/components/Merchant.jsx index a995cb19..28244be6 100644 --- a/src/lib/merchant/components/Merchant.jsx +++ b/src/lib/merchant/components/Merchant.jsx @@ -5,6 +5,7 @@ import InformasiPerusahaan from './InformasiPerusahaan'; import InformasiVendor from './InformasiVendor'; import SyaratDagang from './SyaratDagang'; import Dokumen from './Dokumen'; +import Konfirmasi from './Konfirmasi'; import { getAuth } from '~/libs/auth'; import { setAuth } from '@/core/utils/auth'; import useAuth from '@/core/hooks/useAuth'; @@ -35,17 +36,30 @@ const Merchant = () => { const [error, setError] = useState(false); const handleIsError = (value) => { - console.log('value yang dihasilkan', value); + console.log('LAHKAH SELANJUTNYA', value); if (!value) { goToNextStep(); } setError(value); // Memperbarui state berdasarkan isError }; const stepDivs = [ - , - , - , - , + , + , + , + , + , ]; const stepLabels = [ @@ -64,6 +78,11 @@ const Merchant = () => { }); }, [currentStep]); + useEffect(() => { + ; + console.log('MASUK SINI'); + }, [buttonSubmitClick]); + // useEffect(() => { // const loadBigData = async () => { // const toCamelCase = (str) => @@ -166,6 +185,9 @@ const Merchant = () => { const goPrevStep = () => { setCurrentStep((prev) => (prev === NUMBER_OF_STEPS - 1 ? prev : prev - 1)); }; + const handleDaftarMerchant = () => { + setButtonSubmitClick((prev) => !prev); + }; useEffect(() => { const getBanner = async () => { @@ -210,17 +232,17 @@ const Merchant = () => { {isMobile && (
)} - {/*
- + {/* *Pastikan data yang anda masukan sudah benar dan sesuai - -
*/} + {/*
0 && currentStep < 5 ? 'justify-between' @@ -254,8 +276,8 @@ const Merchant = () => { )} -
- {currentStep == 5 && ( +
*/} + {/* {currentStep == 0 && (
{
- )} -
*/} + )} */} + ); -- cgit v1.2.3