@licklist/design 0.74.0-dev.1 → 0.74.0
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/affiliate/form/AffiliateForm.d.ts.map +1 -1
- package/dist/assets/dashboard/chartBar.svg.js +2 -2
- package/dist/auth/Login/LoginComponent.js +1 -2
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts +1 -2
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +2 -3
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts +1 -2
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.js +2 -3
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.d.ts +1 -2
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +4 -6
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +1 -2
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.js +2 -2
- package/dist/events/event-statistic-modal/hooks/useTableData.d.ts +1 -1
- package/dist/events/event-statistic-modal/hooks/useTableData.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/hooks/useTableData.js +1 -2
- package/dist/events/event-statistic-modal/utils/index.js +3 -3
- package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
- package/dist/events/event-venue-map/EventVenueMap.js +0 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.js +4 -11
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +3 -2
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts.map +1 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.js +11 -4
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +0 -13
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
- package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
- package/dist/iframe/ryft/utils/ryft-form.js +5 -4
- package/dist/layout/DropDown.d.ts +1 -2
- package/dist/layout/DropDown.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +0 -3
- package/dist/product-set/control/ProductSetControl.d.ts +1 -4
- package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetControl.js +2 -13
- package/dist/product-set/form/ProductCategoriesControl.d.ts +1 -2
- package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.js +2 -3
- package/dist/product-set/form/ProductSetForm.d.ts +4 -7
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +3 -5
- package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductZonesControl.js +2 -0
- package/dist/product-set/form/ProductsControl.d.ts +1 -2
- package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductsControl.js +3 -7
- package/dist/product-set/form/StepsControl.d.ts +1 -2
- package/dist/product-set/form/StepsControl.d.ts.map +1 -1
- package/dist/product-set/form/StepsControl.js +3 -5
- package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/SubProductsControl.js +3 -1
- package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
- package/dist/product-set/form/VenueMapsControl.js +3 -0
- package/dist/product-set/form/context.d.ts +2 -1
- package/dist/product-set/form/context.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.d.ts +2 -6
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.js +1 -36
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +0 -6
- package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
- package/dist/product-set/product/deposit/ProductDepositControl.js +0 -3
- package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
- package/dist/product-set/product/duration/ProductDurationControl.js +0 -6
- package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
- package/dist/product-set/product/price/ProductPriceControl.js +0 -3
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +0 -6
- package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityControl.js +0 -6
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +1 -4
- package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.js +0 -12
- package/dist/product-set/utils/index.d.ts +1 -5
- package/dist/product-set/utils/index.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.js +0 -3
- package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
- package/dist/resource/form/components/CapacityControl.js +0 -3
- package/dist/resource/form/components/SortControl.d.ts.map +1 -1
- package/dist/resource/form/components/SortControl.js +0 -3
- package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
- package/dist/sales/booking/results/components/ResultCard.js +2 -0
- package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
- package/dist/sales/coupon/control/CouponFormControl.js +0 -21
- package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.js +1 -4
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
- package/dist/static/CurrencyNumberInput.js +0 -3
- package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
- package/dist/static/form-number-input/FormNumberInput.js +0 -3
- package/dist/static/number-input/NumberInput.d.ts.map +1 -1
- package/dist/static/number-input/NumberInput.js +0 -3
- package/dist/styles/form/CustomCheckbox.scss +0 -31
- package/dist/styles/iframe-events/Calendar.scss +1 -1
- package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/dist/styles/product-set/ProductSetForm.scss +3 -2
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +3 -1
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
- package/dist/zone/form/components/GameDurationControl.js +0 -3
- package/dist/zone/form/components/SortControl.d.ts.map +1 -1
- package/dist/zone/form/components/SortControl.js +0 -3
- package/package.json +6 -8
- package/src/affiliate/form/AffiliateForm.tsx +0 -1
- package/src/auth/Login/LoginComponent.tsx +1 -1
- package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +7 -15
- package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx +0 -3
- package/src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx +0 -3
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -1
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -3
- package/src/events/event-statistic-modal/hooks/useTableData.tsx +1 -2
- package/src/events/event-statistic-modal/utils/index.ts +4 -4
- package/src/events/event-venue-map/EventVenueMap.tsx +0 -1
- package/src/events/event-venue-map/hooks/useCanvasSize.ts +1 -5
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +2 -2
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx +13 -5
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +0 -1
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +0 -9
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +0 -1
- package/src/iframe/ryft/utils/ryft-form.ts +5 -6
- package/src/layout/DropDown.tsx +1 -1
- package/src/notification/email-template/control/EmailTemplateControl.tsx +0 -1
- package/src/product-set/control/ProductSetControl.tsx +0 -17
- package/src/product-set/form/ProductCategoriesControl.tsx +0 -3
- package/src/product-set/form/ProductSetForm.tsx +6 -10
- package/src/product-set/form/ProductZonesControl.tsx +4 -1
- package/src/product-set/form/ProductsControl.tsx +7 -6
- package/src/product-set/form/StepsControl.tsx +3 -4
- package/src/product-set/form/SubProductsControl.tsx +3 -1
- package/src/product-set/form/VenueMapsControl.tsx +3 -0
- package/src/product-set/form/context.tsx +5 -2
- package/src/product-set/product/ProductControl.tsx +18 -57
- package/src/product-set/product/advanced-options/AdvancedOptions.tsx +1 -1
- package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +0 -2
- package/src/product-set/product/deposit/ProductDepositControl.tsx +0 -1
- package/src/product-set/product/duration/ProductDurationControl.tsx +0 -2
- package/src/product-set/product/price/ProductPriceControl.tsx +0 -1
- package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +0 -2
- package/src/product-set/product/quantity/ProductQuantityControl.tsx +0 -2
- package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +0 -1
- package/src/product-set/product-category/ProductCategoryControl.tsx +0 -4
- package/src/product-set/product-zone/ProductZoneControl.tsx +1 -1
- package/src/recurrence-input/RecurrenceEndInput.tsx +0 -1
- package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +0 -1
- package/src/resource/form/components/CapacityControl.tsx +0 -1
- package/src/resource/form/components/SortControl.tsx +0 -1
- package/src/sales/booking/results/components/ResultCard.tsx +2 -0
- package/src/sales/coupon/control/CouponFormControl.tsx +0 -7
- package/src/setting/dashboard/DashboardSettingForm.tsx +0 -1
- package/src/sortable-tree/SortableTreeItem.tsx +6 -1
- package/src/static/CurrencyNumberInput.tsx +0 -1
- package/src/static/form-number-input/FormNumberInput.tsx +0 -1
- package/src/static/number-input/NumberInput.tsx +0 -1
- package/src/styles/form/CustomCheckbox.scss +0 -31
- package/src/styles/iframe-events/Calendar.scss +1 -1
- package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/src/styles/product-set/ProductSetForm.scss +3 -2
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +3 -1
- package/src/styles/sales/BookingResults.scss +1 -1
- package/src/zone/form/components/GameDurationControl.tsx +0 -1
- package/src/zone/form/components/SortControl.tsx +0 -1
- package/yarn.lock +847 -827
- package/dist/product-set/product/scanRange/ProductScanRangeControl.d.ts +0 -12
- package/dist/product-set/product/scanRange/ProductScanRangeControl.d.ts.map +0 -1
- package/dist/product-set/product/scanRange/ProductScanRangeControl.js +0 -153
- package/dist/product-set/product/scanRange/index.d.ts +0 -2
- package/dist/product-set/product/scanRange/index.d.ts.map +0 -1
- package/src/product-set/product/scanRange/ProductScanRangeControl.stories.ts +0 -45
- package/src/product-set/product/scanRange/ProductScanRangeControl.tsx +0 -163
- package/src/product-set/product/scanRange/index.ts +0 -1
|
@@ -36,6 +36,7 @@ import { ProductSetFormValues } from '../../../../product-set/form/ProductSetFor
|
|
|
36
36
|
import { isUrlValid } from '../../utils/isUrlValid'
|
|
37
37
|
import { toSimpleDateTime } from '../../utils/checkIfEventBooked'
|
|
38
38
|
|
|
39
|
+
|
|
39
40
|
export interface EditEventFormValues extends IntervalInputValues {
|
|
40
41
|
name: string
|
|
41
42
|
startAt: string
|
|
@@ -71,7 +72,6 @@ export interface EditEventFormProps extends HasPermissionProp {
|
|
|
71
72
|
disabledRecurrent?: boolean
|
|
72
73
|
isCopyCreate?: boolean
|
|
73
74
|
isBooked?: boolean
|
|
74
|
-
isWaiverEnabled: boolean
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
const eventImageTypes = {
|
|
@@ -97,7 +97,6 @@ export const EditEventForm = ({
|
|
|
97
97
|
disabledRecurrent = false,
|
|
98
98
|
isCopyCreate = false,
|
|
99
99
|
isBooked = false,
|
|
100
|
-
isWaiverEnabled,
|
|
101
100
|
}: EditEventFormProps) => {
|
|
102
101
|
const { t } = useTranslation(['Design', 'Validation'])
|
|
103
102
|
|
|
@@ -201,13 +200,9 @@ export const EditEventForm = ({
|
|
|
201
200
|
rrule && setValue('rrule', rrule?.concat(`;EXDATE=${defaultExDate}`))
|
|
202
201
|
}, [defaultExDate, rrule])
|
|
203
202
|
|
|
204
|
-
const isChanged = !isEqual(
|
|
205
|
-
watchedValues,
|
|
206
|
-
sanitizeDefaultValues(defaultEventValues),
|
|
207
|
-
)
|
|
203
|
+
const isChanged = !isEqual(watchedValues, sanitizeDefaultValues(defaultEventValues));
|
|
208
204
|
const isChangedTime =
|
|
209
|
-
watchedValues?.start !==
|
|
210
|
-
toSimpleDateTime(defaultEventValues?.startAt || '') ||
|
|
205
|
+
watchedValues?.start !== toSimpleDateTime(defaultEventValues?.startAt || '') ||
|
|
211
206
|
watchedValues?.end !== toSimpleDateTime(defaultEventValues?.endAt || '')
|
|
212
207
|
const isSinglEventWithBooked = !rrule && isBooked && isChangedTime
|
|
213
208
|
|
|
@@ -443,7 +438,6 @@ export const EditEventForm = ({
|
|
|
443
438
|
timeZone={timeZone}
|
|
444
439
|
eventProductSet={eventProductSet}
|
|
445
440
|
overrideNameError={overrideNameError}
|
|
446
|
-
isWaiverEnabled={isWaiverEnabled}
|
|
447
441
|
/>
|
|
448
442
|
|
|
449
443
|
{isSinglEventWithBooked && (
|
|
@@ -459,13 +453,9 @@ export const EditEventForm = ({
|
|
|
459
453
|
}
|
|
460
454
|
className='save-event'
|
|
461
455
|
type='button'
|
|
462
|
-
onClick={() =>
|
|
463
|
-
confirm(handleSubmit(onSaveEvent, onErrorSubmit))
|
|
464
|
-
}
|
|
456
|
+
onClick={() => confirm(handleSubmit(onSaveEvent, onErrorSubmit))}
|
|
465
457
|
>
|
|
466
|
-
{formState.isSubmitting
|
|
467
|
-
? `${t('saveAndAdd')}...`
|
|
468
|
-
: t('saveAndAdd')}
|
|
458
|
+
{formState.isSubmitting ? `${t('saveAndAdd')}...` : t('saveAndAdd')}
|
|
469
459
|
</Button>
|
|
470
460
|
)}
|
|
471
461
|
</ConfirmModal>
|
|
@@ -529,3 +519,5 @@ const sanitizeDefaultValues = (
|
|
|
529
519
|
recurrenceEndAt: values?.recurrenceEndAt ?? undefined,
|
|
530
520
|
}
|
|
531
521
|
}
|
|
522
|
+
|
|
523
|
+
|
package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx
CHANGED
|
@@ -21,7 +21,6 @@ interface SelectEventProductSetProps extends HasPermissionProp {
|
|
|
21
21
|
timeZone: string
|
|
22
22
|
eventProductSet?: ProductSet
|
|
23
23
|
overrideNameError?: string
|
|
24
|
-
isWaiverEnabled: boolean
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
export const SelectEventProductSet = ({
|
|
@@ -33,7 +32,6 @@ export const SelectEventProductSet = ({
|
|
|
33
32
|
timeZone,
|
|
34
33
|
eventProductSet,
|
|
35
34
|
overrideNameError,
|
|
36
|
-
isWaiverEnabled,
|
|
37
35
|
}: SelectEventProductSetProps) => {
|
|
38
36
|
const productSets = eventProductSet
|
|
39
37
|
? [..._productSets, eventProductSet]
|
|
@@ -218,7 +216,6 @@ export const SelectEventProductSet = ({
|
|
|
218
216
|
}
|
|
219
217
|
timeZone={timeZone}
|
|
220
218
|
overrideNameError={overrideNameError}
|
|
221
|
-
isWaiverEnabled={isWaiverEnabled}
|
|
222
219
|
/>
|
|
223
220
|
)}
|
|
224
221
|
</>
|
|
@@ -24,7 +24,6 @@ interface EditEventProductSetProps {
|
|
|
24
24
|
defaultValues?: EditEventFormValues['editedProductSet']
|
|
25
25
|
timeZone: string
|
|
26
26
|
overrideNameError?: string
|
|
27
|
-
isWaiverEnabled: boolean
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
export const EditEventProductSet = ({
|
|
@@ -32,7 +31,6 @@ export const EditEventProductSet = ({
|
|
|
32
31
|
defaultValues,
|
|
33
32
|
timeZone,
|
|
34
33
|
overrideNameError,
|
|
35
|
-
isWaiverEnabled,
|
|
36
34
|
}: EditEventProductSetProps) => {
|
|
37
35
|
const { companyId } = useParams<{
|
|
38
36
|
companyId: string
|
|
@@ -141,7 +139,6 @@ export const EditEventProductSet = ({
|
|
|
141
139
|
isOverrides
|
|
142
140
|
workHours={undefined}
|
|
143
141
|
timeZone={timeZone}
|
|
144
|
-
isWaiverEnabled={isWaiverEnabled}
|
|
145
142
|
/>
|
|
146
143
|
<Button
|
|
147
144
|
disabled={isLoading}
|
|
@@ -14,7 +14,6 @@ export const getDefaultValues = (
|
|
|
14
14
|
name: productSet?.name ?? '',
|
|
15
15
|
description: productSet?.description ?? '',
|
|
16
16
|
image: productSet?.image,
|
|
17
|
-
hasGeneralTicket: productSet?.hasGeneralTicket,
|
|
18
17
|
type: productSet?.type ?? DEFAULT_PRODUCT_SET_TYPE,
|
|
19
18
|
termsAndConditions: productSet?.termsAndConditions ?? '',
|
|
20
19
|
operationalCost: productSet?.operationalCost ?? DEFAULT_OPERATIONAL_COST_TYPE,
|
|
@@ -41,6 +40,7 @@ export const getDefaultValues = (
|
|
|
41
40
|
...product,
|
|
42
41
|
subProducts: subProducts?.map(({ ...subProducts }) => ({
|
|
43
42
|
...subProducts,
|
|
43
|
+
originalProductId: null,
|
|
44
44
|
productCategoryId: undefined,
|
|
45
45
|
})),
|
|
46
46
|
productCategoryId: undefined,
|
|
@@ -12,7 +12,6 @@ export type EventStatisticModalProps = {
|
|
|
12
12
|
date?: Event['startAt'] | null
|
|
13
13
|
eventStatistic?: EventStatistic | null
|
|
14
14
|
title?: string
|
|
15
|
-
eventId?: string
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export const EventStatisticModal = ({
|
|
@@ -21,11 +20,10 @@ export const EventStatisticModal = ({
|
|
|
21
20
|
date,
|
|
22
21
|
eventStatistic,
|
|
23
22
|
title,
|
|
24
|
-
eventId,
|
|
25
23
|
}: EventStatisticModalProps) => {
|
|
26
24
|
const { t } = useTranslation('Design')
|
|
27
25
|
|
|
28
|
-
const data = useTableData(date, eventStatistic
|
|
26
|
+
const data = useTableData(date, eventStatistic)
|
|
29
27
|
const handleClose = () => {
|
|
30
28
|
setIsOpen(false)
|
|
31
29
|
}
|
|
@@ -11,7 +11,6 @@ import { StaticTableData } from '../../../table'
|
|
|
11
11
|
export const useTableData = (
|
|
12
12
|
date: Event['startAt'] | null,
|
|
13
13
|
eventStatistic: EventStatistic | null,
|
|
14
|
-
eventId: string,
|
|
15
14
|
) => {
|
|
16
15
|
const { t } = useTranslation('Design')
|
|
17
16
|
const { formatNumber } = useIntl()
|
|
@@ -85,7 +84,7 @@ export const useTableData = (
|
|
|
85
84
|
useEffect(() => {
|
|
86
85
|
setTableRows(transformStatisticToTableRows(date, eventStatistic))
|
|
87
86
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
88
|
-
}, [date,
|
|
87
|
+
}, [date, eventStatistic])
|
|
89
88
|
|
|
90
89
|
return tableRows
|
|
91
90
|
}
|
|
@@ -33,15 +33,15 @@ export const convertEventStatisticToTableData = (
|
|
|
33
33
|
return []
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
const summaryFormattedDate = DateTime.fromISO(date)
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
const summaryFormattedDate = DateTime.fromISO(date)
|
|
37
|
+
.toUTC()
|
|
38
|
+
.toFormat(DATE_FORMAT)
|
|
39
39
|
|
|
40
40
|
const summaryDays =
|
|
41
41
|
Object.keys(eventStatistic?.productCategorySummary)?.filter(
|
|
42
42
|
(date) =>
|
|
43
43
|
DateTime.fromFormat(date, DATE_TIME_FULL_FORMAT).toFormat(
|
|
44
|
-
|
|
44
|
+
DATE_FORMAT,
|
|
45
45
|
) === summaryFormattedDate,
|
|
46
46
|
) ?? []
|
|
47
47
|
|
|
@@ -10,17 +10,13 @@ export const useCanvasSize = ({
|
|
|
10
10
|
width: componentWidth,
|
|
11
11
|
height: componentHeight,
|
|
12
12
|
}: CanvasSizeProps) => {
|
|
13
|
-
// TODO Fix often updating of width and height
|
|
14
13
|
const { width, height } = useWindowDimensions()
|
|
15
14
|
|
|
16
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
17
|
-
const memoizedDimensions = useMemo(() => ({ width, height }), [width])
|
|
18
|
-
|
|
19
15
|
const memoedComponentParameters = useMemo(() => {
|
|
20
16
|
if (!componentWidth && !componentHeight) return null
|
|
21
17
|
|
|
22
18
|
return { width: componentWidth, height: componentHeight }
|
|
23
19
|
}, [componentWidth, componentHeight])
|
|
24
20
|
|
|
25
|
-
return memoedComponentParameters ||
|
|
21
|
+
return memoedComponentParameters || { width, height }
|
|
26
22
|
}
|
package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx
CHANGED
|
@@ -48,12 +48,12 @@ export const ProductWithModifierSetModal = ({
|
|
|
48
48
|
</button>
|
|
49
49
|
</div>
|
|
50
50
|
<div className='right-block' id='select-event-container'>
|
|
51
|
-
<div className={clsx('manual-booking-container', !product
|
|
51
|
+
<div className={clsx('manual-booking-container', !product?.images?.length && 'tw-mt-8')}>
|
|
52
52
|
<div className='manual-booking-header'>
|
|
53
53
|
<TicketDescription
|
|
54
54
|
title={product.name}
|
|
55
55
|
description={product.description}
|
|
56
|
-
className={clsx('iframe-event__product-description', !product
|
|
56
|
+
className={clsx('iframe-event__product-description', !product?.images?.length && 'mt-6')}
|
|
57
57
|
classNameProductModal='d-block'
|
|
58
58
|
images={product.images}
|
|
59
59
|
isRequired={product.isRequired}
|
package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx
CHANGED
|
@@ -35,6 +35,9 @@ export const ModifiersSetControl = ({
|
|
|
35
35
|
const { t } = useTranslation('App')
|
|
36
36
|
|
|
37
37
|
const orderModifiersSets = watch(`${productId}.orderProductModifiers`)
|
|
38
|
+
const filteredOrderModifiersSets = orderModifiersSets
|
|
39
|
+
?.flat(Infinity)
|
|
40
|
+
?.filter((item) => item && typeof item === 'object')
|
|
38
41
|
|
|
39
42
|
const { formatNumber } = useIntl()
|
|
40
43
|
const formatToCurrency = (value: number) =>
|
|
@@ -58,8 +61,9 @@ export const ModifiersSetControl = ({
|
|
|
58
61
|
const selectedModifier = modifiers?.find(
|
|
59
62
|
(item) => item.id === Number(e.target.defaultValue || e.target.id),
|
|
60
63
|
)
|
|
64
|
+
|
|
61
65
|
const checkSelectedModifier =
|
|
62
|
-
|
|
66
|
+
filteredOrderModifiersSets?.find(
|
|
63
67
|
(modifier) => modifier?.modifierId === selectedModifier?.id,
|
|
64
68
|
)?.quantity === 1
|
|
65
69
|
|
|
@@ -125,9 +129,11 @@ export const ModifiersSetControl = ({
|
|
|
125
129
|
)
|
|
126
130
|
}, [isEditMode])
|
|
127
131
|
|
|
128
|
-
const radioButtonDefaultModifier = currentOrderModifiersSets
|
|
129
|
-
|
|
130
|
-
|
|
132
|
+
const radioButtonDefaultModifier = currentOrderModifiersSets
|
|
133
|
+
.find((modifier) =>
|
|
134
|
+
modifierSet.modifiers.some((rl) => rl.id === modifier.modifierId),
|
|
135
|
+
)
|
|
136
|
+
?.modifierId.toString()
|
|
131
137
|
|
|
132
138
|
return (
|
|
133
139
|
<>
|
|
@@ -167,7 +173,9 @@ export const ModifiersSetControl = ({
|
|
|
167
173
|
inline
|
|
168
174
|
id={modifier.id.toString()}
|
|
169
175
|
defaultChecked={!!selectedOrderModifierId}
|
|
170
|
-
defaultValue={
|
|
176
|
+
defaultValue={
|
|
177
|
+
selectedOrderModifierId || modifier.id.toString()
|
|
178
|
+
}
|
|
171
179
|
checked={field.value === modifier.id.toString()}
|
|
172
180
|
onChange={onChange}
|
|
173
181
|
type='radio'
|
|
@@ -3,7 +3,6 @@ import { useIntl } from 'react-intl'
|
|
|
3
3
|
import * as Config from '@licklist/core/dist/Config'
|
|
4
4
|
import { OrderItem } from '@licklist/plugins/dist/types/context/Iframe/orderItems'
|
|
5
5
|
import { OrderModifierByProduct } from '@licklist/core/dist/DataMapper/Order/OrderModifiierByProduct'
|
|
6
|
-
import { calculateTotalModifiersPrice } from '../../utils'
|
|
7
6
|
import { ProductWithModifier } from '../../../CategoryProduct/components/ProductWithModifier/ProductWithModifier'
|
|
8
7
|
|
|
9
8
|
|
package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx
CHANGED
|
@@ -89,7 +89,6 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
|
|
|
89
89
|
<FormControl
|
|
90
90
|
type='number'
|
|
91
91
|
onChange={(e) => handleChangeValue(Number(e.target.value))}
|
|
92
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
93
92
|
value={value}
|
|
94
93
|
min={0}
|
|
95
94
|
max={max}
|
|
@@ -102,14 +101,6 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
|
|
|
102
101
|
<button
|
|
103
102
|
type='button'
|
|
104
103
|
onClick={handleArrowUpClick}
|
|
105
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
106
|
-
onFocus={(event) =>
|
|
107
|
-
event.target.addEventListener(
|
|
108
|
-
'wheel',
|
|
109
|
-
(event) => event.preventDefault(),
|
|
110
|
-
{ passive: false },
|
|
111
|
-
)
|
|
112
|
-
}
|
|
113
104
|
className={`payment-number-input__btn-up ${
|
|
114
105
|
plusButtonGreyedOut && 'disabled-number-input-button'
|
|
115
106
|
}`}
|
|
@@ -61,7 +61,6 @@ const processedPaymentSummary = ({
|
|
|
61
61
|
const total = order.fullAmount || calculateTotalPrice(order, externalPaymentDetail)
|
|
62
62
|
|
|
63
63
|
const totalDiscount = calculateTotalDiscount(order.payments)
|
|
64
|
-
|
|
65
64
|
let summaryItems: SummaryItem[] = [
|
|
66
65
|
{
|
|
67
66
|
translateKey: AMOUNT_TOTAL,
|
|
@@ -61,22 +61,20 @@ export const injectComponentsInRyftForm = ({
|
|
|
61
61
|
divider.id = 'mobile-pay-divider'
|
|
62
62
|
container.id = 'mobile-pay-divider-container'
|
|
63
63
|
container.append(dividerText, divider)
|
|
64
|
-
const payIframe = document.getElementById(
|
|
64
|
+
const payIframe = document.getElementById("ryft-pay-iframe");
|
|
65
65
|
if (payIframe) {
|
|
66
66
|
const formBox = document.getElementById('form-disable-box')
|
|
67
67
|
if (formBox) {
|
|
68
|
-
formBox.style.display = isDisableButton ?
|
|
68
|
+
formBox.style.display = isDisableButton ? "block" : "none"
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
const googleButton = document.getElementById(
|
|
72
72
|
'gpay-button-online-api-id',
|
|
73
73
|
) as HTMLButtonElement
|
|
74
|
-
const appleButton =
|
|
75
|
-
'ryft-pay-apple-pay-button',
|
|
76
|
-
) as HTMLButtonElement
|
|
74
|
+
const appleButton =document.getElementById("ryft-pay-apple-pay-button") as HTMLButtonElement
|
|
77
75
|
if (googleButton) {
|
|
78
76
|
googleButton.disabled = isDisableButton
|
|
79
|
-
googleButton.style.opacity =
|
|
77
|
+
googleButton.style.opacity = isDisableButton ? '1' : '0.6'
|
|
80
78
|
}
|
|
81
79
|
if (appleButton) {
|
|
82
80
|
appleButton.disabled = isDisableButton
|
|
@@ -88,6 +86,7 @@ export const injectComponentsInRyftForm = ({
|
|
|
88
86
|
const applePayButton = document.createElement('button')
|
|
89
87
|
applePayButton.id = 'apple-pay'
|
|
90
88
|
applePayButton.type = 'button'
|
|
89
|
+
applePayButton.style.opacity = !isDisableButton ? '1' : '0.6'
|
|
91
90
|
applePayButton.className = 'bg-dark btn btn-primary apple-pay-button'
|
|
92
91
|
applePayButton.textContent = t('Events:payWithApple')
|
|
93
92
|
applePayButton.onclick = onApplePayButtonClick
|
package/src/layout/DropDown.tsx
CHANGED
|
@@ -434,7 +434,6 @@ export const EmailTemplateControl = forwardRef(
|
|
|
434
434
|
`templateOptionValues.${option?.id}.value`,
|
|
435
435
|
)}
|
|
436
436
|
type='number'
|
|
437
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
438
437
|
placeholder={t(`Design:${option.name}`)}
|
|
439
438
|
id={option.name + option.id}
|
|
440
439
|
defaultValue={option.selectedValue || ''}
|
|
@@ -69,7 +69,6 @@ export interface ProductSetControlValues extends DateAndRecurrenceInputValues {
|
|
|
69
69
|
fieldSetId?: number
|
|
70
70
|
saleDeadline?: number
|
|
71
71
|
steps: Step[]
|
|
72
|
-
hasGeneralTicket?: boolean
|
|
73
72
|
emailTemplates?: TemplateItem[]
|
|
74
73
|
smsTemplates?: TemplateItem[]
|
|
75
74
|
localImageBlobURL?: string
|
|
@@ -97,10 +96,8 @@ export interface ProductSetControlProps {
|
|
|
97
96
|
providerHasBookingManagement?: boolean
|
|
98
97
|
isOverrides?: boolean
|
|
99
98
|
saleDeadline?: number
|
|
100
|
-
hasGeneralTicket?: boolean
|
|
101
99
|
isCreateNewOverrides?: boolean
|
|
102
100
|
timeZone: string
|
|
103
|
-
isWaiverEnabled: boolean
|
|
104
101
|
}
|
|
105
102
|
|
|
106
103
|
export function ProductSetControl({
|
|
@@ -119,7 +116,6 @@ export function ProductSetControl({
|
|
|
119
116
|
isOverrides = false,
|
|
120
117
|
isCreateNewOverrides = false,
|
|
121
118
|
timeZone,
|
|
122
|
-
isWaiverEnabled,
|
|
123
119
|
}: ProductSetControlProps) {
|
|
124
120
|
const { t } = useTranslation(['Design', 'Validation', 'Notification'])
|
|
125
121
|
const {
|
|
@@ -240,7 +236,6 @@ export function ProductSetControl({
|
|
|
240
236
|
isEventEditProductSet={isEventEditProductSet}
|
|
241
237
|
isOverrides={isOverrides}
|
|
242
238
|
isCreateNewOverrides={isCreateNewOverrides}
|
|
243
|
-
isWaiverEnabled={isWaiverEnabled}
|
|
244
239
|
/>
|
|
245
240
|
</Col>
|
|
246
241
|
<Col md={6} sm={12}>
|
|
@@ -312,18 +307,6 @@ export function ProductSetControl({
|
|
|
312
307
|
</Form.Control.Feedback>
|
|
313
308
|
</Form.Group>
|
|
314
309
|
|
|
315
|
-
<Form.Group
|
|
316
|
-
controlId='hasGeneralTicket'
|
|
317
|
-
className='checkbox-second-column mt-4'
|
|
318
|
-
>
|
|
319
|
-
<Form.Check
|
|
320
|
-
data-testid='save-as-template-checkbox'
|
|
321
|
-
label={t('Design:hasGeneralTicket')}
|
|
322
|
-
{...register('hasGeneralTicket')}
|
|
323
|
-
custom
|
|
324
|
-
/>
|
|
325
|
-
</Form.Group>
|
|
326
|
-
|
|
327
310
|
<Form.Group controlId={termsAndConditionsId}>
|
|
328
311
|
<Form.Label>{t('Design:termsAndConditions')}</Form.Label>
|
|
329
312
|
<Form.Control
|
|
@@ -66,7 +66,6 @@ interface ProductCategoriesControlProps extends WithIsLoading {
|
|
|
66
66
|
isOverrides?: boolean
|
|
67
67
|
isEventEditProductSet?: boolean
|
|
68
68
|
isCreateNewOverrides?: boolean
|
|
69
|
-
isWaiverEnabled: boolean
|
|
70
69
|
}
|
|
71
70
|
|
|
72
71
|
const getCategoryDefaultValue = (
|
|
@@ -100,7 +99,6 @@ export function ProductCategoriesControl({
|
|
|
100
99
|
isOverrides,
|
|
101
100
|
isEventEditProductSet,
|
|
102
101
|
isCreateNewOverrides,
|
|
103
|
-
isWaiverEnabled,
|
|
104
102
|
}: ProductCategoriesControlProps) {
|
|
105
103
|
const { t } = useTranslation('Design')
|
|
106
104
|
const {
|
|
@@ -349,7 +347,6 @@ export function ProductCategoriesControl({
|
|
|
349
347
|
isOverrides={isOverrides}
|
|
350
348
|
isEventEditProductSet={isEventEditProductSet}
|
|
351
349
|
isCreateNewOverrides={isCreateNewOverrides}
|
|
352
|
-
isWaiverEnabled={isWaiverEnabled}
|
|
353
350
|
/>
|
|
354
351
|
</SortableTree.Item>
|
|
355
352
|
)}
|
|
@@ -7,10 +7,13 @@ import { VenueMapSet } from '@licklist/core/dist/DataMapper/Product/VenueMapSetD
|
|
|
7
7
|
import { ServerError } from '@licklist/plugins/dist/hooks/Api/useHttpQuery'
|
|
8
8
|
import FormErrorService from '@licklist/plugins/dist/services/Form/FormErrorService'
|
|
9
9
|
import { ModifierSet } from '@licklist/core/dist/DataMapper/Product/ModifierSetDataMapper'
|
|
10
|
+
|
|
10
11
|
import { isEqual } from 'lodash'
|
|
12
|
+
// eslint-disable-next-line max-len
|
|
13
|
+
import { ProviderBookingManagementSetting } from '@licklist/core/dist/DataMapper/Provider/ProviderBookingManagementSettingDataMapper'
|
|
11
14
|
import { Zone } from '@licklist/core/dist/DataMapper/Provider/ZoneDataMapper'
|
|
12
15
|
import { WorkHour } from '@licklist/core/dist/DataMapper/Provider/WorkHourDataMapper'
|
|
13
|
-
import { transformErrorToMessage } from '@licklist/plugins
|
|
16
|
+
import { transformErrorToMessage } from '@licklist/plugins'
|
|
14
17
|
import { Dialog, useDialogContext } from '../../modals/dialog'
|
|
15
18
|
import {
|
|
16
19
|
ProductSetControl,
|
|
@@ -30,16 +33,12 @@ import { ErrorModal } from '../../iframe/order-process/components/ErrorModal'
|
|
|
30
33
|
export interface WithIsLoading {
|
|
31
34
|
isLoading: boolean
|
|
32
35
|
}
|
|
33
|
-
export interface WithIdOptional {
|
|
34
|
-
id?: number
|
|
35
|
-
}
|
|
36
|
-
|
|
37
36
|
export interface WithId {
|
|
38
37
|
id: number
|
|
39
38
|
}
|
|
40
39
|
export interface ProductSetFormValues
|
|
41
40
|
extends FormValues,
|
|
42
|
-
|
|
41
|
+
WithId,
|
|
43
42
|
ProductSetControlValues {
|
|
44
43
|
steps: Step[]
|
|
45
44
|
isOverrides?: boolean
|
|
@@ -56,8 +55,7 @@ export interface ProductSetFormProps
|
|
|
56
55
|
serverErrors?: ServerError
|
|
57
56
|
providerHasMap?: boolean
|
|
58
57
|
venueMapSets?: VenueMapSet[]
|
|
59
|
-
providerHasBookingManagement?:
|
|
60
|
-
isWaiverEnabled: boolean
|
|
58
|
+
providerHasBookingManagement?: ProviderBookingManagementSetting['hasBookingManagement']
|
|
61
59
|
zones?: Zone[] | null
|
|
62
60
|
isCreateAction?: boolean
|
|
63
61
|
isOverrides?: boolean
|
|
@@ -80,7 +78,6 @@ export function ProductSetForm({
|
|
|
80
78
|
providerHasMap = false,
|
|
81
79
|
venueMapSets = [],
|
|
82
80
|
providerHasBookingManagement,
|
|
83
|
-
isWaiverEnabled,
|
|
84
81
|
zones,
|
|
85
82
|
isCreateAction,
|
|
86
83
|
workHours,
|
|
@@ -212,7 +209,6 @@ export function ProductSetForm({
|
|
|
212
209
|
isOverrides={isOverrides}
|
|
213
210
|
isCreateNewOverrides={isCreateNewOverrides}
|
|
214
211
|
timeZone={timeZone}
|
|
215
|
-
isWaiverEnabled={isWaiverEnabled}
|
|
216
212
|
/>
|
|
217
213
|
<Row>
|
|
218
214
|
<Col md={6} sm={12} />
|
|
@@ -12,12 +12,15 @@ import { useTranslation } from 'react-i18next'
|
|
|
12
12
|
import { DEFAULT_PRODUCT_TYPE } from '@licklist/core/dist/DataMapper/Product/ProductDataMapper'
|
|
13
13
|
import { generateUuid } from '@licklist/core/dist/Services'
|
|
14
14
|
import HookFormService from '@licklist/plugins/dist/services/Form/HookFormService'
|
|
15
|
+
|
|
15
16
|
import { CategoryType } from '@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper'
|
|
16
17
|
import { ProductControl, ProductControlProps, ProductSetFormValues } from '..'
|
|
17
18
|
import { SortableTree } from '../../sortable-tree'
|
|
18
19
|
import { CreateProductSetItem } from '../item/CreateProductSetItem'
|
|
19
20
|
import { Product } from '../types'
|
|
20
21
|
import { WithIsLoading } from './ProductSetForm'
|
|
22
|
+
// @TODO not for first release
|
|
23
|
+
// import Popover from "./ProductSetFormPopover";
|
|
21
24
|
import { useSortableTreeFunctions } from '../hooks/useSortableTreeFunctions'
|
|
22
25
|
import { SubProductsControl } from './SubProductsControl'
|
|
23
26
|
import { ProductSetModalClasses } from '../../sortable-tree/SortableTreeItem'
|
|
@@ -32,7 +35,6 @@ interface ProductsControlProps extends WithIsLoading {
|
|
|
32
35
|
isOverrides?: boolean
|
|
33
36
|
isEventEditProductSet?: boolean
|
|
34
37
|
isCreateNewOverrides?: boolean
|
|
35
|
-
isWaiverEnabled: boolean
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
const getDefaultProductValue = (sort: number): Product => ({
|
|
@@ -45,8 +47,6 @@ const getDefaultProductValue = (sort: number): Product => ({
|
|
|
45
47
|
deposit: 0,
|
|
46
48
|
minQuantity: null,
|
|
47
49
|
maxQuantity: null,
|
|
48
|
-
scanRangeStart: null,
|
|
49
|
-
scanRangeEnd: null,
|
|
50
50
|
totalQuantity: 0,
|
|
51
51
|
isAvailable: true,
|
|
52
52
|
modifiersSet: [],
|
|
@@ -76,7 +76,6 @@ export function ProductsControl({
|
|
|
76
76
|
isOverrides,
|
|
77
77
|
isEventEditProductSet,
|
|
78
78
|
isCreateNewOverrides,
|
|
79
|
-
isWaiverEnabled,
|
|
80
79
|
}: ProductsControlProps) {
|
|
81
80
|
const { t } = useTranslation('Design')
|
|
82
81
|
const form = useFormContext<ProductSetFormValues>()
|
|
@@ -281,7 +280,6 @@ export function ProductsControl({
|
|
|
281
280
|
isOverrides={
|
|
282
281
|
isNewProductOverrides || isOverridesProductSet
|
|
283
282
|
}
|
|
284
|
-
isWaiverEnabled={isWaiverEnabled}
|
|
285
283
|
/>
|
|
286
284
|
}
|
|
287
285
|
onDelete={() => onProductRemove(index)}
|
|
@@ -289,6 +287,7 @@ export function ProductsControl({
|
|
|
289
287
|
trigger(`${productControlFieldName}.${index}`)
|
|
290
288
|
}
|
|
291
289
|
saveValidField={saveValidField}
|
|
290
|
+
// preItem={<Popover className="d-none d-sm-block" />}
|
|
292
291
|
>
|
|
293
292
|
<SubProductsControl
|
|
294
293
|
isLoading={isLoading}
|
|
@@ -314,7 +313,9 @@ export function ProductsControl({
|
|
|
314
313
|
}
|
|
315
314
|
}}
|
|
316
315
|
/>
|
|
317
|
-
<div className='manual-form-error'>
|
|
316
|
+
<div className='manual-form-error'>
|
|
317
|
+
{categoryProductErrors && categoryProductErrors.message}
|
|
318
|
+
</div>
|
|
318
319
|
</>
|
|
319
320
|
)
|
|
320
321
|
}
|
|
@@ -21,7 +21,6 @@ interface StepsControlProps {
|
|
|
21
21
|
isOverrides?: boolean
|
|
22
22
|
isEventEditProductSet?: boolean
|
|
23
23
|
isCreateNewOverrides?: boolean
|
|
24
|
-
isWaiverEnabled: boolean
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
export function StepsControl({
|
|
@@ -29,7 +28,6 @@ export function StepsControl({
|
|
|
29
28
|
isOverrides,
|
|
30
29
|
isEventEditProductSet,
|
|
31
30
|
isCreateNewOverrides,
|
|
32
|
-
isWaiverEnabled,
|
|
33
31
|
}: StepsControlProps) {
|
|
34
32
|
const form = useFormContext<ProductSetFormValues>()
|
|
35
33
|
const { t } = useTranslation('Design')
|
|
@@ -152,7 +150,6 @@ export function StepsControl({
|
|
|
152
150
|
isOverrides={isOverrides}
|
|
153
151
|
isCreateNewOverrides={isCreateNewOverrides}
|
|
154
152
|
isEventEditProductSet={isEventEditProductSet}
|
|
155
|
-
isWaiverEnabled={isWaiverEnabled}
|
|
156
153
|
/>
|
|
157
154
|
</SortableTree.Item>
|
|
158
155
|
)}
|
|
@@ -170,7 +167,9 @@ export function StepsControl({
|
|
|
170
167
|
}
|
|
171
168
|
}}
|
|
172
169
|
/>
|
|
173
|
-
<div className='manual-form-error'>
|
|
170
|
+
<div className='manual-form-error'>
|
|
171
|
+
{errors.steps && errors.steps.message}
|
|
172
|
+
</div>
|
|
174
173
|
</>
|
|
175
174
|
)
|
|
176
175
|
}
|
|
@@ -56,7 +56,6 @@ export function SubProductsControl({
|
|
|
56
56
|
quantityType={quantityType}
|
|
57
57
|
allowDeposits={false}
|
|
58
58
|
hasBookingManagement={false}
|
|
59
|
-
isWaiverEnabled={false}
|
|
60
59
|
fieldNamePrefix={
|
|
61
60
|
// eslint-disable-next-line max-len
|
|
62
61
|
`steps.${stepIndex}.productCategories.${productCategoryIndex}.products.${productIndex}.subProducts.${index}` as const
|
|
@@ -71,6 +70,9 @@ export function SubProductsControl({
|
|
|
71
70
|
images: subProducts[index]?.images as Image[],
|
|
72
71
|
}
|
|
73
72
|
// @ts-expect-error TS2345
|
|
73
|
+
// @TODO fix prod type error
|
|
74
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
75
|
+
// @ts-ignore
|
|
74
76
|
append(subProductCopy)
|
|
75
77
|
}}
|
|
76
78
|
/>
|
|
@@ -46,6 +46,9 @@ export const VenueMapsControl = ({
|
|
|
46
46
|
url={image.url}
|
|
47
47
|
name={name}
|
|
48
48
|
points={points}
|
|
49
|
+
// @TODO fix prod type error
|
|
50
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
51
|
+
// @ts-ignore
|
|
49
52
|
products={products}
|
|
50
53
|
pointProducts={pointProducts}
|
|
51
54
|
onPointProductsChange={onPointProductsChange}
|