+
{profile.name}
@@ -87,74 +326,142 @@ function ProfileCard({ profile,activeTab }) {
{/* Profile Details */}
+{(activeTab === "1" || activeTab === "2" || activeTab === "3") && (
+ <>
+
+
+
+ {profile.lastseen}
+
+
+
+ >
+)}
+
-
+
Age: {profile.age}
-
+
Height: {profile.height}
+
-
-
- {profile.religion}
-
-
-
-
-
-
- {profile.education}
-
-
-
-
-
-
+
+
{profile.location}
- {/* Action Buttons */}
-
+
- {/* ❌ Cross button always visible */}
-
+ {/* Action Buttons */}
- {/* ❤️ Like Button → ONLY visible when tab = "2" (Sent Requests) */}
- {activeTab === "2" && (
-
- )}
+ {(activeTab === "1" || activeTab === "2") && (
+
+
+
+
+ e.stopPropagation();
+ setIsLiked(!isLiked);
+ } }
+ >
+ {isLiked ? (
+
+ ) : (
+
+ )}
+
+ Accepted Request
+
+
+
+ )}
+
+{activeTab === "3" && (
+
+ <>
+
+
+
+
+
+
+
+
+
+ >
+)}
+
+
+ {activeTab === "4" && ( <>
+
+
+
+
+
+ Received Interest 14 Nov 2025
+
+
+
+
+
+ Rejected 15 Nov 2025
+
+
+
+ >)}
+
+ >
+
);
}
@@ -175,11 +482,11 @@ export default function InterestSendPage() {
matrimonyId: "PS2847593",
age: 24,
height: "5.4",
- religion: "Hindu / Brahmin",
+ lastseen: "Last seen 4 Nov 2025",
education: "MBA / Marketing Manager",
location: "Mumbai",
image:
- "https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=600&h=800&fit=crop",
+ bride1,
isPremium: true,
},
{
@@ -188,11 +495,11 @@ export default function InterestSendPage() {
matrimonyId: "AR2847594",
age: 23,
height: "5.3",
- religion: "Hindu / Reddy",
+ lastseen: "Last seen 4 Nov 2025",
education: "B.Tech / Software Engineer",
location: "Hyderabad",
image:
- "https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=600&h=800&fit=crop",
+ bride2,
isPremium: false,
},
{
@@ -201,107 +508,222 @@ export default function InterestSendPage() {
matrimonyId: "DP2847595",
age: 25,
height: "5.5",
- religion: "Hindu / Patel",
+ lastseen: "Last seen 4 Nov 2025",
education: "CA / Chartered Accountant",
location: "Ahmedabad",
image:
- "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=600&h=800&fit=crop",
+ bride3,
+ isPremium: true,
+ },
+ {
+ id: 4,
+ name: "Divya Patel",
+ matrimonyId: "DP2847595",
+ age: 25,
+ height: "5.5",
+ lastseen: "Last seen 4 Nov 2025",
+ education: "CA / Chartered Accountant",
+ location: "Ahmedabad",
+ image:
+ groom2,
isPremium: true,
},
],
sent: [
{
- id: 4,
+ id: 5,
name: "Kavya Iyer",
matrimonyId: "KI2847596",
age: 22,
height: "5.2",
- religion: "Hindu / Iyer",
+ lastseen: "Last seen 4 Nov 2025",
education: "BCA / Data Analyst",
location: "Chennai",
image:
- "https://images.unsplash.com/photo-1488426862026-3ee34a7d66df?w=600&h=800&fit=crop",
+ bride4,
isPremium: true,
},
{
- id: 5,
+ id: 6,
name: "Neha Singh",
matrimonyId: "NS2847597",
age: 26,
height: "5.6",
- religion: "Hindu / Rajput",
+ lastseen: "Last seen 4 Nov 2025",
education: "MD / Doctor",
location: "Delhi",
image:
- "https://images.unsplash.com/photo-1524504388940-b1c1722653e1?w=600&h=800&fit=crop",
+ bride1,
+ isPremium: false,
+ },
+ {
+ id: 7,
+ name: "Neha Singh",
+ matrimonyId: "NS2847597",
+ age: 26,
+ height: "5.6",
+ lastseen: "Last seen 4 Nov 2025",
+ education: "MD / Doctor",
+ location: "Delhi",
+ image:
+ bride2,
+ isPremium: false,
+ },
+ {
+ id: 8,
+ name: "Neha Singh",
+ matrimonyId: "NS2847597",
+ age: 26,
+ height: "5.6",
+ lastseen: "Last seen 4 Nov 2025",
+ education: "MD / Doctor",
+ location: "Delhi",
+ image:
+ bride3,
isPremium: false,
},
],
accepted: [
{
- id: 6,
+ id: 9,
name: "Shreya Nair",
matrimonyId: "SN2847598",
age: 24,
height: "5.4",
- religion: "Hindu / Nair",
+ lastseen: "Last seen 4 Nov 2025",
education: "B.Sc / Nurse",
location: "Kochi",
image:
- "https://images.unsplash.com/photo-1531123897727-8f129e1688ce?w=600&h=800&fit=crop",
+ groom1,
isPremium: true,
},
{
- id: 7,
+ id: 10,
name: "Meera Desai",
matrimonyId: "MD2847599",
age: 23,
height: "5.3",
- religion: "Hindu / Desai",
+ lastseen: "Last seen 4 Nov 2025",
education: "BBA / HR Manager",
location: "Pune",
image:
- "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=600&h=800&fit=crop",
+ groom2,
isPremium: false,
},
{
- id: 8,
+ id: 11,
name: "Riya Kumar",
matrimonyId: "RK2847600",
age: 25,
height: "5.5",
- religion: "Hindu / Kumar",
+ lastseen: "Last seen 4 Nov 2025",
education: "M.Tech / Project Manager",
location: "Bangalore",
image:
- "https://images.unsplash.com/photo-1529626455594-4ff0802cfb7e?w=600&h=800&fit=crop",
+ groom3,
+ isPremium: true,
+ },
+ {
+ id: 12,
+ name: "Riya Kumar",
+ matrimonyId: "RK2847600",
+ age: 25,
+ height: "5.5",
+ lastseen: "Last seen 4 Nov 2025",
+ education: "M.Tech / Project Manager",
+ location: "Bangalore",
+ image:
+ groom1,
isPremium: true,
},
],
rejected: [
{
- id: 9,
+ id: 13,
name: "Sanya Joshi",
matrimonyId: "SJ2847601",
age: 27,
height: "5.7",
- religion: "Hindu / Joshi",
+ lastseen: "Last seen 4 Nov 2025",
education: "LLB / Lawyer",
location: "Nagpur",
image:
- "https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?w=600&h=800&fit=crop",
+ groom4,
+ isPremium: false,
+ },
+ {
+ id: 14,
+ name: "Sanya Joshi",
+ matrimonyId: "SJ2847601",
+ age: 27,
+ height: "5.7",
+ lastseen: "Last seen 4 Nov 2025",
+ education: "LLB / Lawyer",
+ location: "Nagpur",
+ image:
+ groom3,
+ isPremium: false,
+ },
+ {
+ id: 15,
+ name: "Sanya Joshi",
+ matrimonyId: "SJ2847601",
+ age: 27,
+ height: "5.7",
+ lastseen: "Last seen 4 Nov 2025",
+ education: "LLB / Lawyer",
+ location: "Nagpur",
+ image:
+ bride1,
+ isPremium: false,
+ },
+ {
+ id: 16,
+ name: "Sanya Joshi",
+ matrimonyId: "SJ2847601",
+ age: 27,
+ height: "5.7",
+ lastseen: "Last seen 4 Nov 2025",
+ education: "LLB / Lawyer",
+ location: "Nagpur",
+ image:
+ bride2,
isPremium: false,
},
],
};
+
+ // Step 1: Use state for profiles
+const [profiles, setProfiles] = useState({
+ received: [...profilesData.received],
+ sent: [...profilesData.sent],
+ accepted: [...profilesData.accepted],
+ rejected: [...profilesData.rejected],
+});
+
+// Corrected handleDelete to update profiles state properly
+ const handleDelete = (id) => {
+ setProfiles((prev) => {
+ const updated = { ...prev };
+ Object.keys(updated).forEach((key) => {
+ updated[key] = updated[key].filter((p) => p.id !== id);
+ });
+ return updated;
+ });
+ toast.success("Profile deleted successfully!", {
+ duration: 2000,
+ });
+ };
+
+
return (
-
-
+
+
{/* Header */}
- Interest Management
+ Received Interest
Manage your matrimony profile interests
@@ -309,15 +731,20 @@ export default function InterestSendPage() {
{/* MUI Tabs */}
-
+
-
-
+
+
{/* Received Requests */}
-
-
+
+
{profilesData.received.map((profile) => (
))}
@@ -384,16 +814,16 @@ export default function InterestSendPage() {
{/* Sent Requests */}
-
+
{profilesData.sent.map((profile) => (
-
+
))}
{/* Accepted */}
-
+
{profilesData.accepted.map((profile) => (
))}
@@ -402,7 +832,7 @@ export default function InterestSendPage() {
{/* Rejected */}
-
+
{profilesData.rejected.map((profile) => (
))}
diff --git a/src/pages/ProfileDetailPage.jsx b/src/pages/ProfileDetailPage.jsx
index e558732..0857d04 100644
--- a/src/pages/ProfileDetailPage.jsx
+++ b/src/pages/ProfileDetailPage.jsx
@@ -1,13 +1,16 @@
+import { useParams } from "react-router-dom";
import MatrimonyProfile from "../components/profiledetail/MatrimonyProfile"
import PartnerPreferences from "../components/profiledetail/PartnerPreferences"
+import MatchingList from "../components/profiledashboard/MatchingList";
const ProfileDetailPage = () => {
+ const { id } = useParams();
return (
<>
>
)
diff --git a/src/routes/PublicRoutes.jsx b/src/routes/PublicRoutes.jsx
index 4679784..914604b 100644
--- a/src/routes/PublicRoutes.jsx
+++ b/src/routes/PublicRoutes.jsx
@@ -4,10 +4,11 @@ import LandingLayout from "../layout/LandingLayout";
import LoginPage from "../pages/auth/LoginPage";
import ForgotPasswordPage from "../pages/auth/ForgotPasswordPage";
import ChangePasswordPage from "../components/auth/ChangePasswordForm";
+import ProfileLayout from "../layout/ProfileLayout";
const PublicRoutes = () => {
return (
<>
-
}>
+
}>
} />
diff --git a/src/routes/UserRoutes.jsx b/src/routes/UserRoutes.jsx
index d4cd0a8..7e37d93 100644
--- a/src/routes/UserRoutes.jsx
+++ b/src/routes/UserRoutes.jsx
@@ -31,7 +31,7 @@ const UserRoutes = () => {
}>
-
} />
+
} />
}>
} />
@@ -55,9 +55,11 @@ const UserRoutes = () => {
}>
-
} />
+
} />
+
+
}>
+
} />
-
}>
} />