diff --git a/Frontend/src/pages/UserPanel/Farm/CropsList.jsx b/Frontend/src/pages/UserPanel/Farm/CropsList.jsx new file mode 100644 index 0000000..b5ca7c2 --- /dev/null +++ b/Frontend/src/pages/UserPanel/Farm/CropsList.jsx @@ -0,0 +1,61 @@ +const CropsList = ({ farmData }) => { + return ( +
+

{farmData.name}

+ + + + + + + + + + + + + + + {/* Clicking on the name cell can navigate to a more detailed view if needed */} + + + + + + + + +
+ Farm Name + + Location + + Type + + Size (acres) + + Water Content + + Action +
{ + // Navigate to a detailed view for this farm if desired + navigate(`farmpage/${farmData._id}`); + }} + > + {farmData.name} + {farmData.location}{farmData.soilType}{farmData.size}{farmData.waterContent} + +
+
+ ); +}; +export default CropsList;