diff --git a/src/components/common/Skeleton.jsx b/src/components/common/Skeleton.jsx index 614a7d8..ed1ab3c 100644 --- a/src/components/common/Skeleton.jsx +++ b/src/components/common/Skeleton.jsx @@ -52,10 +52,6 @@ export const SkeletonText = ({ height = 12, className = "", }) => { - useEffect(() => { - injectSkeletonStyles(); - }, []); - return (
{Array.from({ length: lines }).map((_, idx) => ( @@ -69,4 +65,44 @@ export const SkeletonText = ({ ); }; +export const SkeletonPage = ({ className = "" }) => { + return ( +
+ {/* Header */} +
+ +
+ + + +
+
+ + {/* Banner */} +
+ +
+ + {/* 4 Cards */} +
+ {Array.from({ length: 4 }).map((_, idx) => ( +
+ + + +
+ ))} +
+ + {/* Footer */} +
+ + + + +
+
+ ); +}; + export default Skeleton; diff --git a/src/feature/EducationalDetailsForm.jsx b/src/feature/EducationalDetailsForm.jsx index 56758da..ab7669a 100644 --- a/src/feature/EducationalDetailsForm.jsx +++ b/src/feature/EducationalDetailsForm.jsx @@ -225,7 +225,7 @@ const EducationalDetailsForm = ({ {/* Occupation */}
- + { } - sx={{ padding: "15px 15px", background: "#f5fbff" }} + sx={{ padding: "15px 15px", background: "#ffff" }} /> diff --git a/src/feature/StepperForm.jsx b/src/feature/StepperForm.jsx index 38593b5..f80c0f4 100644 --- a/src/feature/StepperForm.jsx +++ b/src/feature/StepperForm.jsx @@ -589,6 +589,7 @@ useEffect(()=>{ "mobileNumber", "gender", "dob", + "height", "maritalStatus", "profileFor", "caste", @@ -638,10 +639,8 @@ useEffect(()=>{ const required = [ "qualification", "fieldOfStudy", - "occupation", - "organization", - "employeeType", - "income", + + ]; required.forEach((field) => { if (!educationalDetails[field]) { diff --git a/src/routes/AppRoutes.jsx b/src/routes/AppRoutes.jsx index 84ff743..b091c18 100644 --- a/src/routes/AppRoutes.jsx +++ b/src/routes/AppRoutes.jsx @@ -3,18 +3,10 @@ import { Route, Routes } from 'react-router-dom'; import UserRoutes from './UserRoutes'; import PublicRoutes from './PublicRoutes'; import ScrollToTop from '../components/common/ScrollToTop'; -import Skeleton from "../components/common/Skeleton"; +import { SkeletonPage } from "../components/common/Skeleton"; const RouteFallback = () => ( -
-
- - - - - -
-
+ ); const AppRoutes = () => {