@pradip1995/segment-product-card 0.3.4 → 0.3.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pradip1995/segment-product-card",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -25,7 +25,7 @@
25
25
  "next": ">=15"
26
26
  },
27
27
  "dependencies": {
28
- "@pradip1995/segment-primitives": "^0.3.0",
28
+ "@pradip1995/segment-primitives": "^0.3.2",
29
29
  "@pradip1995/segment-tokens": "^0.3.2"
30
30
  },
31
31
  "devDependencies": {
@@ -35,7 +35,6 @@ export default function BeautyProductCard({
35
35
  const countryCode =
36
36
  countryCodeProp?.toLowerCase() ??
37
37
  region?.countries?.[0]?.iso_2?.toLowerCase() ??
38
- process.env.NEXT_PUBLIC_DEFAULT_REGION?.toLowerCase() ??
39
38
  "in"
40
39
 
41
40
  const discountPct =
@@ -27,7 +27,6 @@ export default function DefaultProductCard({
27
27
  const countryCode =
28
28
  countryCodeProp?.toLowerCase() ??
29
29
  region?.countries?.[0]?.iso_2?.toLowerCase() ??
30
- process.env.NEXT_PUBLIC_DEFAULT_REGION?.toLowerCase() ??
31
30
  "in"
32
31
 
33
32
  const discountPct =
package/src/segment.tsx CHANGED
@@ -18,8 +18,7 @@ type Props = {
18
18
 
19
19
  function resolveProductCardVariant(variant?: ProductCardVariant): ProductCardVariant {
20
20
  if (variant === "beauty" || variant === "default") return variant
21
- const envVariant = process.env.NEXT_PUBLIC_PRODUCT_CARD_VARIANT?.toLowerCase()
22
- return envVariant === "beauty" ? "beauty" : "default"
21
+ return "default"
23
22
  }
24
23
 
25
24
  export default function ProductCard({ variant, ...props }: Props) {