diff --git a/Frontend/src/components/Td.jsx b/Frontend/src/components/Td.jsx index a64e5bf..1c26a00 100644 --- a/Frontend/src/components/Td.jsx +++ b/Frontend/src/components/Td.jsx @@ -1,10 +1,21 @@ +import { useNavigate } from "react-router-dom"; + const Td = ({ children }) => { - console.log(children); + const navigate = useNavigate(); return ( - {children.name} + { + console.log("Td", children._id); + navigate(`farmpage/${children._id}`); + }} + > + {children.name} + {children.location} {children.soilType} + {children.size}