hey-pharmacist-ecommerce 1.1.10 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/screens/ShopScreen.tsx +107 -115
package/dist/index.js
CHANGED
|
@@ -8136,7 +8136,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
8136
8136
|
{
|
|
8137
8137
|
product,
|
|
8138
8138
|
onClickProduct: (item) => {
|
|
8139
|
-
router.push(buildPath(`/products/${item.
|
|
8139
|
+
router.push(buildPath(`/products/${item._id}`));
|
|
8140
8140
|
}
|
|
8141
8141
|
}
|
|
8142
8142
|
)))) : /* @__PURE__ */ React21__default.default.createElement("div", { className: "space-y-4" }, displayedProducts.map((product) => {
|
|
@@ -8149,7 +8149,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
8149
8149
|
key: product.id,
|
|
8150
8150
|
whileHover: { y: -4 },
|
|
8151
8151
|
className: "group flex cursor-pointer flex-col gap-6 rounded-2xl border border-gray-100 bg-white p-5 shadow-sm transition hover:shadow-xl md:flex-row md:items-start",
|
|
8152
|
-
onClick: () => router.push(buildPath(`/products/${product.
|
|
8152
|
+
onClick: () => router.push(buildPath(`/products/${product._id}`))
|
|
8153
8153
|
},
|
|
8154
8154
|
/* @__PURE__ */ React21__default.default.createElement("div", { className: "relative h-48 w-full overflow-hidden rounded-2xl bg-gray-100 md:h-40 md:w-40" }, /* @__PURE__ */ React21__default.default.createElement(
|
|
8155
8155
|
Image3__default.default,
|