From 05bc3d29507647be59e70220c462b518ac7fdeeb Mon Sep 17 00:00:00 2001 From: David Martinez Gil Date: Wed, 31 Jul 2024 22:11:30 -0400 Subject: [PATCH] now when clicking a product anywhere it gets linked --- src/components/App.jsx | 2 +- src/components/Product.jsx | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/App.jsx b/src/components/App.jsx index 490e6dc..ad00ed2 100644 --- a/src/components/App.jsx +++ b/src/components/App.jsx @@ -6,7 +6,7 @@ import NavBar from "./NavBar"; import "../css/App.css" import { Provider} from "react-redux"; import store from "./redux/store"; -import "../css/global.scss" + function App(){ diff --git a/src/components/Product.jsx b/src/components/Product.jsx index 095684a..7411aa0 100644 --- a/src/components/Product.jsx +++ b/src/components/Product.jsx @@ -99,10 +99,11 @@ function Product(props) { return (
+ { currentLocation === "admin-store" && role === "STORE" ? ( - +
product
- + ) : ( @@ -142,6 +143,7 @@ function Product(props) { ) }
+ );