From a585ac58f69dd40e2b7acc4fe5be1c3d8e32455a Mon Sep 17 00:00:00 2001 From: Atharva Date: Sun, 23 Feb 2025 02:27:21 +0530 Subject: [PATCH] Feat:Sent farmId prop to Farm.jsx --- Frontend/src/pages/UserPanel/Farm/FarmPage.jsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Frontend/src/pages/UserPanel/Farm/FarmPage.jsx b/Frontend/src/pages/UserPanel/Farm/FarmPage.jsx index ac586c2..176fee0 100644 --- a/Frontend/src/pages/UserPanel/Farm/FarmPage.jsx +++ b/Frontend/src/pages/UserPanel/Farm/FarmPage.jsx @@ -1,7 +1,7 @@ import React, { useEffect, useState } from "react"; import { useParams, useNavigate } from "react-router-dom"; import Farm from "./Farm"; -import AddCrop from "./AddCrop"; +import CropList from "./CropList"; export default function FarmPage() { const { farmId } = useParams(); @@ -50,11 +50,18 @@ export default function FarmPage() { ); } + console.log("My farm id is : ", farmId); + return (
{/* Back Button */} - - + +
+ +
+
+ +
); }