@codesinger0/shared-components 1.1.35 → 1.1.36

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.
@@ -255,6 +255,10 @@ const OrderForm = ({
255
255
  };
256
256
 
257
257
  const handleInputChange = (field, value) => {
258
+ if (field === 'deliveryMethod' && value === 'pickup') {
259
+ setDeliveryError('')
260
+ setErrors({})
261
+ }
258
262
  setFormData(prev => ({ ...prev, [field]: value }));
259
263
  if (errors[field]) {
260
264
  setErrors(prev => ({ ...prev, [field]: '' }));
@@ -282,8 +286,7 @@ const OrderForm = ({
282
286
  onNavigateToLogin();
283
287
  };
284
288
 
285
- const handleOnBack =() => {
286
- debugger
289
+ const handleOnBack = () => {
287
290
  onBack();
288
291
  }
289
292
 
@@ -371,7 +374,7 @@ const OrderForm = ({
371
374
 
372
375
  // Create payment link
373
376
  // const paymentResponse = await createPaymentLink(orderData);
374
- const paymentResponse = await simulatePaymentLinkCreation(orderData);
377
+ const paymentResponse = await simulatePaymentLinkCreation(orderData);
375
378
 
376
379
  if (paymentResponse.success) {
377
380
  // Create order items in the format expected by the database
@@ -457,7 +460,7 @@ const OrderForm = ({
457
460
  className="flex items-center gap-2 mb-6 content-text hover:text-primary transition-colors duration-200"
458
461
  >
459
462
  <ArrowRight className="w-4 h-4" />
460
- חזור לעגלה
463
+ חזור
461
464
  </button>
462
465
 
463
466
  <div className="glass-card p-8">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codesinger0/shared-components",
3
- "version": "1.1.35",
3
+ "version": "1.1.36",
4
4
  "description": "Shared React components for customer projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [