diff --git a/frontend/src/pages/Admin/AllProducts.jsx b/frontend/src/pages/Admin/AllProducts.jsx index c38b85ce..2756444d 100644 --- a/frontend/src/pages/Admin/AllProducts.jsx +++ b/frontend/src/pages/Admin/AllProducts.jsx @@ -1,4 +1,4 @@ -import { Link } from "react-router-dom"; +import { Link,useNavigate } from "react-router-dom"; import moment from "moment"; import { useAllProductsQuery } from "../../redux/api/productApiSlice"; import AdminMenu from "./AdminMenu"; @@ -24,10 +24,13 @@ const AllProducts = () => {