@codesinger0/shared-components 1.1.36 → 1.1.38

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.
@@ -42,6 +42,7 @@ const OrderForm = ({
42
42
  addToast, // Inject toast function
43
43
  cartItems,
44
44
  totalPrice,
45
+ paymentLinkCreationURL
45
46
  }) => {
46
47
 
47
48
  const [nameError, setNameError] = useState('');
@@ -127,7 +128,7 @@ const OrderForm = ({
127
128
  });
128
129
  }
129
130
 
130
- const response = await fetch('https://us-central1-beauty-salon-b2e61.cloudfunctions.net/confectioneryShopPayment', {
131
+ const response = await fetch(paymentLinkCreationURL, {
131
132
  method: 'POST',
132
133
  headers: {
133
134
  'Content-Type': 'application/json'
@@ -373,8 +374,8 @@ const OrderForm = ({
373
374
  };
374
375
 
375
376
  // Create payment link
376
- // const paymentResponse = await createPaymentLink(orderData);
377
- const paymentResponse = await simulatePaymentLinkCreation(orderData);
377
+ const paymentResponse = await createPaymentLink(orderData);
378
+ // const paymentResponse = await simulatePaymentLinkCreation(orderData);
378
379
 
379
380
  if (paymentResponse.success) {
380
381
  // Create order items in the format expected by the database
@@ -568,8 +569,8 @@ const OrderForm = ({
568
569
 
569
570
  <div className="grid grid-cols-1 md:grid-cols-2 gap-4">
570
571
  <label className={`glass-card p-4 cursor-pointer border-2 transition-colors duration-200 ${formData.deliveryMethod === 'delivery'
571
- ? 'border-primary bg-opacity-20'
572
- : 'border-transparent hover:border-gray-300'
572
+ ? 'border-gray-300 bg-opacity-20'
573
+ : 'border-transparent hover:border-gray-100'
573
574
  }`}>
574
575
  <input
575
576
  type="radio"
@@ -589,8 +590,8 @@ const OrderForm = ({
589
590
  </label>
590
591
 
591
592
  <label className={`glass-card p-4 cursor-pointer border-2 transition-colors duration-200 ${formData.deliveryMethod === 'pickup'
592
- ? 'border-primary bg-opacity-20'
593
- : 'border-transparent hover:border-gray-300'
593
+ ? 'border-gray-300 bg-opacity-20'
594
+ : 'border-transparent hover:border-gray-100'
594
595
  }`}>
595
596
  <input
596
597
  type="radio"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codesinger0/shared-components",
3
- "version": "1.1.36",
3
+ "version": "1.1.38",
4
4
  "description": "Shared React components for customer projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [