hey-pharmacist-ecommerce 1.1.9 → 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 CHANGED
@@ -8136,8 +8136,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
8136
8136
  {
8137
8137
  product,
8138
8138
  onClickProduct: (item) => {
8139
- const productData = encodeURIComponent(JSON.stringify(item));
8140
- router.push(buildPath(`/products/${item.id}?product=${productData}`));
8139
+ router.push(buildPath(`/products/${item._id}`));
8141
8140
  }
8142
8141
  }
8143
8142
  )))) : /* @__PURE__ */ React21__default.default.createElement("div", { className: "space-y-4" }, displayedProducts.map((product) => {
@@ -8150,7 +8149,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
8150
8149
  key: product.id,
8151
8150
  whileHover: { y: -4 },
8152
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",
8153
- onClick: () => router.push(buildPath(`/products/${product.id}`))
8152
+ onClick: () => router.push(buildPath(`/products/${product._id}`))
8154
8153
  },
8155
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(
8156
8155
  Image3__default.default,