@codesinger0/shared-components 1.1.100 → 1.1.102

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.
@@ -106,7 +106,7 @@ const SmallItemCard = ({
106
106
  <div className="space-y-2">
107
107
  <div className="flex items-center justify-between">
108
108
  <div className="flex items-center gap-2">
109
- <span className="price-tag text-green-600">
109
+ <span className="price-tag">
110
110
  ₪{discountPrice}
111
111
  </span>
112
112
  <span className="text-sm text-gray-400 line-through">
@@ -45,7 +45,8 @@ const OrderForm = ({
45
45
  businessName,
46
46
  paymentLinkCreationURL,
47
47
  scrollContainerRef,
48
- clearCart // Function to clear cart after successful order
48
+ clearCart, // Function to clear cart after successful order
49
+ enableClubMembership = true // Control whether to show club membership section
49
50
  }) => {
50
51
 
51
52
  const [nameError, setNameError] = useState('');
@@ -59,7 +60,7 @@ const OrderForm = ({
59
60
  const isWorkshopPurchase = !!workshopData;
60
61
  const isDigitalPurchase = isCoursePurchase; // Only courses are digital
61
62
  const isUserClubMember = currentUserData?.isClubMember || false;
62
- const shouldShowClubMembership = !isUserClubMember;
63
+ const shouldShowClubMembership = enableClubMembership && !isUserClubMember;
63
64
  const clubDiscountPercentage = settings?.clubDiscountPercentage || 10;
64
65
 
65
66
  const items = isCoursePurchase ? [courseData] : isWorkshopPurchase ? [workshopData] : cartItems;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codesinger0/shared-components",
3
- "version": "1.1.100",
3
+ "version": "1.1.102",
4
4
  "description": "Shared React components for customer projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [