diff --git a/src/Components/HeaderMain.jsx b/src/Components/HeaderMain.jsx index d227ea0..ecf352e 100644 --- a/src/Components/HeaderMain.jsx +++ b/src/Components/HeaderMain.jsx @@ -155,23 +155,24 @@ const HeaderMain = ({ */} - - + + Switch Accounts {users.map((val) => { return ( - + // - + // ); })} diff --git a/src/Pages/OptiFiiExpense/wallet/CreateBenefitWalletModal.jsx b/src/Pages/OptiFiiExpense/wallet/CreateBenefitWalletModal.jsx index 9538f6c..9a0b46e 100644 --- a/src/Pages/OptiFiiExpense/wallet/CreateBenefitWalletModal.jsx +++ b/src/Pages/OptiFiiExpense/wallet/CreateBenefitWalletModal.jsx @@ -1,6 +1,8 @@ import React, { useState } from 'react'; import { Box, Modal, ModalOverlay, ModalContent, ModalHeader, ModalBody, ModalCloseButton, Text, Input, Select, Stack, + InputGroup, + InputLeftElement, HStack, Divider, Button @@ -9,16 +11,19 @@ import { Step, StepIndicator, StepSeparator, + StepStatus, StepTitle, Stepper, } from '@chakra-ui/react'; -import { IoCheckmark } from "react-icons/io5"; -import PrimaryButton from "../../../../src/Components/Buttons/PrimaryButton"; +import { IoIosCheckmark } from "react-icons/io"; +import { MdCurrencyRupee } from "react-icons/md"; +import { HiOutlineExclamationCircle } from "react-icons/hi2"; +import PrimaryButton from "../../../../src/Components/Buttons/PrimaryButton" import RupeeSlider from '../../../Components/RupeeSlider/RupeeSlider'; import BenifitStepOne from './BenifitStepOne'; -import BenifitStepTwo from './BenifitStepTwo'; -import BenifitStepThree from './BenifitStepThree'; - +import SubmissionPolicy from './SubmissionPolicy'; +import DefineBudget from './DefineBudget'; + const CreateBenefitWalletModal = ({ isOpen, onClose }) => { // Define steps const steps = [ @@ -52,66 +57,48 @@ const CreateBenefitWalletModal = ({ isOpen, onClose }) => { Create Benefit Wallet - {/* Stepper Component with 130% width, custom scrollbar and horizontal scroll */} - - {/* Set the stepper width to 130% */} - - {steps.map((step, index) => ( - - - - {index < activeStep ? ( - - ) : ( - {index + 1} - )} - - - - - - - {step.title} - - - - - {index !== steps.length - 1 && ( - + {/* Stepper Component */} + + {steps.map((step, index) => ( + + + + {index < activeStep ? ( + + ) : ( + {index + 1} )} - - ))} - - - + + + + + + + {step.title} + + + + + {index !== steps.length - 1 && ( + + )} + + ))} + {/* Conditionally render form fields based on active step */} @@ -124,12 +111,17 @@ const CreateBenefitWalletModal = ({ isOpen, onClose }) => { {/* Step 2 Content: Approval Policy */} {activeStep === 1 && ( - + + Approval Policy + This is step 2 content. + )} {/* Step 3 Content: Submission Policy */} {activeStep === 2 && ( - + + + )} {/* Step 4 Content: Define Budget */} @@ -140,7 +132,7 @@ const CreateBenefitWalletModal = ({ isOpen, onClose }) => { )} {/* Stepper Controls */} - +