remove form diabling div from LockerStatus.jsx

This commit is contained in:
Md Asif 2024-12-27 16:34:18 +05:30
parent 6b19adf03e
commit 307d2621ce

View File

@ -125,17 +125,11 @@ function LockerStatus() {
<AnimatePresence> <AnimatePresence>
{notification.message !== "" && <Notification {...notification} />} {notification.message !== "" && <Notification {...notification} />}
</AnimatePresence> </AnimatePresence>
<div className="relative">
{notification.type === "success" && ( <FormBox title={t("lockerStatus")}>
<div className="absolute inset-0 bg-[#fff]/50 z-10 rounded-3xl" /> <FieldsWrapper>{formFields.map(renderField)}</FieldsWrapper>
)} <Button text={t("submit")} onClick={handleSubmit} />
<FormBox title={t("lockerStatus")}> </FormBox>
<FieldsWrapper>
{formFields.map(renderField)}
</FieldsWrapper>
<Button text={t("submit")} onClick={handleSubmit} />
</FormBox>
</div>
</div> </div>
); );
} }