@licklist/design 0.66.9-dev.1 → 0.66.10-dev.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/card/AffiliateCard.js +7 -9
- package/dist/auth/AccessDenied/AccessDenied.js +3 -6
- package/dist/auth/Social/SocialFormComponent.d.ts.map +1 -1
- package/dist/auth/Social/SocialFormComponent.js +0 -1
- package/dist/calendar/components/CalendarButtons/CalendarButtons.js +31 -39
- package/dist/collapsible-input-group/CollapsibleInputGroup.d.ts.map +1 -1
- package/dist/collapsible-input-group/CollapsibleInputGroup.js +5 -5
- package/dist/custom-fields/constants.d.ts +2 -2
- package/dist/custom-fields/constants.d.ts.map +1 -1
- package/dist/custom-fields/constants.js +8 -4
- package/dist/custom-fields/field/FieldItem.d.ts +2 -1
- package/dist/custom-fields/field/FieldItem.d.ts.map +1 -1
- package/dist/custom-fields/field/FieldItem.js +1 -6
- package/dist/custom-fields/forms/DropdownForm.js +5 -9
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +2 -2
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.js +3 -4
- package/dist/events/event-card/EventCard.d.ts.map +1 -1
- package/dist/events/event-card/EventCard.js +6 -16
- package/dist/events/event-statistic-modal/EventStatisticModal.js +3 -5
- package/dist/events/event-venue-map/components/ZoomButtons/ZoomButtons.js +3 -6
- package/dist/file-upload/FilePreview.js +6 -11
- package/dist/help/popover/HelpPopover.js +3 -6
- package/dist/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.d.ts.map +1 -1
- package/dist/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.js +6 -9
- package/dist/iframe/event/event-navigation-footer/EventNavigationFooter.d.ts.map +1 -1
- package/dist/iframe/event/event-navigation-footer/EventNavigationFooter.js +7 -11
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.js +9 -8
- package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.js +2 -5
- package/dist/iframe/order-process/components/ErrorModal/ErrorModal.js +2 -5
- package/dist/iframe/order-process/components/NavigationFooter/NavigationFooter.js +3 -8
- package/dist/iframe/order-process/components/PaymentCard/PaymentCard.js +2 -5
- package/dist/iframe/order-process/components/Timer/Timer.js +2 -5
- package/dist/iframe/payment/order-items-table/OrderItemsTable.js +1 -2
- package/dist/iframe/payment/payment-form/PaymentForm.js +1 -2
- package/dist/iframe/payment/payment-page/PaymentPage.js +1 -1
- package/dist/iframe/payment/payment-page/PaymentTimer.js +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +1 -1
- package/dist/index.js +1 -1
- package/dist/layout/DropDown.d.ts.map +1 -1
- package/dist/layout/DropDown.js +1 -0
- package/dist/layout/DropDownToggle.d.ts.map +1 -1
- package/dist/layout/DropDownToggle.js +1 -0
- package/dist/modals/confirmation/ConfirmModal.js +3 -4
- package/dist/modals/fullscreen/FullscreenModal.js +3 -4
- package/dist/notification/email-template/card/EmailTemplateCard.js +3 -8
- package/dist/notification/sms-template/card/SmsTemplateCard.js +3 -8
- package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
- package/dist/product-set/card/ProductSetCard.js +7 -9
- package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
- package/dist/product-set/control/DateAndRecurrenceInput.js +3 -5
- package/dist/product-set/control/DateInput.js +3 -5
- package/dist/product-set/control/ProductSetRecurrenceControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetRecurrenceControl.js +5 -8
- package/dist/product-set/control/ProductSetRecurrenceOverridesControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetRecurrenceOverridesControl.js +5 -8
- package/dist/product-set/control/TutorialGifCard.d.ts.map +1 -1
- package/dist/product-set/control/TutorialGifCard.js +6 -10
- package/dist/product-set/elements/DeleteFieldButton.d.ts.map +1 -1
- package/dist/product-set/elements/DeleteFieldButton.js +3 -4
- package/dist/product-set/form/MobileFooter.d.ts.map +1 -1
- package/dist/product-set/form/ProductsControl.js +2 -2
- package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
- package/dist/product-set/form/SelectCategoryModal.js +30 -23
- package/dist/product-set/form/SubProductsControl.js +1 -1
- package/dist/product-set/item/CreateProductSetItem.d.ts.map +1 -1
- package/dist/product-set/item/CreateProductSetItem.js +3 -6
- package/dist/product-set/popover/ProductSetPopover.js +3 -5
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.js +3 -4
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +3 -4
- package/dist/product-set/product/deposit/ProductDepositControl.js +3 -4
- package/dist/product-set/product/price/ProductPriceControl.js +3 -4
- package/dist/report/card/ReportCard.d.ts +1 -2
- package/dist/report/card/ReportCard.d.ts.map +1 -1
- package/dist/report/card/ReportCard.js +6 -16
- package/dist/sales/booking/results/components/ResultCard.js +4 -5
- package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts.map +1 -1
- package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.js +3 -6
- package/dist/sales/modals/payment-modal/PaymentModal.js +3 -4
- package/dist/sales/modals/refund-modal/RefundModal.js +3 -4
- package/dist/sales/notes/NotesTable.d.ts.map +1 -1
- package/dist/sales/notes/NotesTable.js +4 -6
- package/dist/sales/notes/NotesTableRow.js +7 -9
- package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
- package/dist/setting/admin/AdminSettingForm.js +3 -6
- package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
- package/dist/setting/admin/PaymentFeeForm.js +11 -26
- package/dist/setting/dashboard/FinancialDataForm.d.ts.map +1 -1
- package/dist/setting/dashboard/ProviderSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/ProviderSettingForm.js +3 -6
- package/dist/setting/dashboard/snippet-templates/card/SnippetTemplateCard.js +2 -5
- package/dist/setting/dashboard/snippets/card/SnippetCard.js +7 -9
- package/dist/sidebar/elements/ReturnBack.js +2 -5
- package/dist/slide-curtain/SlideCurtain.d.ts.map +1 -1
- package/dist/slide-curtain/SlideCurtain.js +3 -4
- package/dist/snippet/snippet-template/preview/Preview.js +1 -1
- package/dist/snippet/snippet-template/settings/SettingButton.js +3 -6
- package/dist/sortable-list/CreateSortableListItem.d.ts.map +1 -1
- package/dist/sortable-list/CreateSortableListItem.js +3 -6
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.js +6 -10
- package/dist/static/RestrictedAccess.js +3 -4
- package/dist/static/SocialButton.d.ts +0 -1
- package/dist/static/SocialButton.d.ts.map +1 -1
- package/dist/static/SocialButton.js +7 -10
- package/dist/static/UserBadge.d.ts.map +1 -1
- package/dist/static/date-range-input/DateRangeInput.d.ts.map +1 -1
- package/dist/static/date-range-input/DateRangeInput.js +3 -5
- package/dist/static/index.d.ts +0 -1
- package/dist/static/index.d.ts.map +1 -1
- package/dist/static/index.js +1 -1
- package/dist/static/number-input/NumberInput.js +5 -7
- package/dist/striped-static-table/StripedStaticTable.js +1 -2
- package/dist/styles/iframe-page/PageBody.scss +1 -0
- package/dist/table/MenuButton.d.ts +3 -3
- package/dist/table/MenuButton.d.ts.map +1 -1
- package/dist/table/MenuButton.js +3 -8
- package/dist/table/PaginationHelperComponent.d.ts.map +1 -1
- package/dist/table/PaginationHelperComponent.js +5 -8
- package/dist/tiptap-editor/TipTapMenu/TipTapMenu.d.ts.map +1 -1
- package/dist/tiptap-editor/TipTapMenu/TipTapMenu.js +17 -16
- package/dist/tiptap-editor/TipTapMenu/components/TipTapMenuItem.d.ts +3 -3
- package/dist/tiptap-editor/TipTapMenu/components/TipTapMenuItem.d.ts.map +1 -1
- package/dist/tiptap-editor/TipTapMenu/components/TipTapMenuItem.js +2 -8
- package/dist/venue-map-sets/card/VenueMapSetCard.js +7 -9
- package/dist/venue-map-sets/form/components/VenueMapControl.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/VenueMapControl.js +5 -8
- package/dist/venue-map-sets/form/components/VenueMapModal.js +3 -4
- package/dist/zone/card/ZoneCard.js +7 -9
- package/dist/zone/form/components/ZoneRecurrenceControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneRecurrenceControl.js +5 -8
- package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneRecurrencesControl.js +3 -5
- package/package.json +4 -5
- package/src/affiliate/card/AffiliateCard.tsx +4 -4
- package/src/auth/AccessDenied/AccessDenied.tsx +2 -2
- package/src/auth/Social/SocialFormComponent.tsx +0 -1
- package/src/calendar/components/CalendarButtons/CalendarButtons.tsx +28 -28
- package/src/collapsible-input-group/CollapsibleInputGroup.tsx +7 -4
- package/src/custom-fields/{constants.ts → constants.tsx} +3 -2
- package/src/custom-fields/field/FieldItem.tsx +4 -3
- package/src/custom-fields/forms/DropdownForm.tsx +3 -3
- package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +2 -2
- package/src/events/event-card/EventCard.tsx +13 -6
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +2 -2
- package/src/events/event-venue-map/components/ZoomButtons/ZoomButtons.tsx +2 -2
- package/src/file-upload/FilePreview.tsx +4 -8
- package/src/header/Header.stories.tsx +1 -2
- package/src/help/popover/HelpPopover.tsx +2 -2
- package/src/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.tsx +4 -9
- package/src/iframe/event/event-navigation-footer/EventNavigationFooter.tsx +5 -4
- package/src/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.tsx +11 -15
- package/src/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.tsx +2 -2
- package/src/iframe/order-process/components/ErrorModal/ErrorModal.tsx +2 -2
- package/src/iframe/order-process/components/NavigationFooter/NavigationFooter.tsx +3 -3
- package/src/iframe/order-process/components/PaymentCard/PaymentCard.tsx +2 -2
- package/src/iframe/order-process/components/Timer/Timer.tsx +2 -2
- package/src/image-radio-input/ImageRadioInput.stories.tsx +3 -3
- package/src/layout/DropDown.tsx +2 -0
- package/src/layout/DropDownToggle.tsx +2 -0
- package/src/modals/confirmation/ConfirmModal.tsx +2 -2
- package/src/modals/fullscreen/FullscreenModal.tsx +2 -2
- package/src/notification/email-template/card/EmailTemplateCard.tsx +3 -3
- package/src/notification/sms-template/card/SmsTemplateCard.tsx +3 -3
- package/src/product-set/card/ProductSetCard.tsx +4 -5
- package/src/product-set/control/DateAndRecurrenceInput.tsx +3 -4
- package/src/product-set/control/DateInput.tsx +4 -4
- package/src/product-set/control/ProductSetRecurrenceControl.tsx +6 -7
- package/src/product-set/control/ProductSetRecurrenceOverridesControl.tsx +5 -8
- package/src/product-set/control/TutorialGifCard.tsx +5 -12
- package/src/product-set/elements/DeleteFieldButton.tsx +2 -2
- package/src/product-set/form/MobileFooter.tsx +6 -36
- package/src/product-set/form/ProductSetForm.tsx +1 -1
- package/src/product-set/form/SelectCategoryModal.tsx +24 -19
- package/src/product-set/item/CreateProductSetItem.tsx +2 -7
- package/src/product-set/popover/ProductSetPopover.tsx +2 -2
- package/src/product-set/product/ProductControl.tsx +2 -5
- package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +2 -2
- package/src/product-set/product/deposit/ProductDepositControl.tsx +2 -2
- package/src/product-set/product/price/ProductPriceControl.tsx +2 -2
- package/src/report/card/ReportCard.tsx +0 -10
- package/src/sales/booking/results/components/ResultCard.tsx +2 -2
- package/src/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.tsx +3 -9
- package/src/sales/modals/payment-modal/PaymentModal.tsx +2 -2
- package/src/sales/modals/refund-modal/RefundModal.tsx +2 -2
- package/src/sales/notes/NotesTable.tsx +2 -2
- package/src/sales/notes/NotesTableRow.tsx +4 -4
- package/src/setting/admin/AdminSettingForm.tsx +2 -7
- package/src/setting/admin/PaymentFeeForm.tsx +7 -32
- package/src/setting/dashboard/FinancialDataForm.tsx +4 -19
- package/src/setting/dashboard/ProviderSettingForm.tsx +2 -7
- package/src/setting/dashboard/components/IpInput.tsx +2 -2
- package/src/setting/dashboard/snippet-templates/card/SnippetTemplateCard.tsx +2 -2
- package/src/setting/dashboard/snippets/card/SnippetCard.tsx +4 -4
- package/src/sidebar/elements/ReturnBack.tsx +2 -2
- package/src/slide-curtain/SlideCurtain.tsx +2 -6
- package/src/snippet/snippet-template/settings/SettingButton.tsx +2 -2
- package/src/sortable-list/CreateSortableListItem.tsx +2 -7
- package/src/sortable-tree/SortableTreeItem.tsx +4 -5
- package/src/static/RestrictedAccess.tsx +2 -2
- package/src/static/SocialButton.tsx +4 -5
- package/src/static/Static.stories.tsx +2 -2
- package/src/static/UserBadge.tsx +2 -6
- package/src/static/date-range-input/DateRangeInput.tsx +2 -6
- package/src/static/index.ts +0 -1
- package/src/static/number-input/NumberInput.tsx +3 -3
- package/src/styles/iframe-page/PageBody.scss +1 -0
- package/src/table/MenuButton.tsx +4 -8
- package/src/table/PaginationHelperComponent.tsx +3 -4
- package/src/tiptap-editor/TipTapMenu/TipTapMenu.tsx +24 -16
- package/src/tiptap-editor/TipTapMenu/components/TipTapMenuItem.tsx +4 -7
- package/src/venue-map-sets/card/VenueMapSetCard.tsx +4 -4
- package/src/venue-map-sets/form/components/VenueMapControl.tsx +3 -8
- package/src/venue-map-sets/form/components/VenueMapModal.tsx +2 -2
- package/src/zone/card/ZoneCard.tsx +4 -4
- package/src/zone/form/components/ZoneRecurrenceControl.tsx +3 -11
- package/src/zone/form/components/ZoneRecurrencesControl.tsx +2 -6
- package/yarn.lock +152 -165
- package/dist/assets/iframe/selectArrow.svg.js +0 -17
- package/dist/static/Icon.d.ts +0 -13
- package/dist/static/Icon.d.ts.map +0 -1
- package/dist/static/Icon.js +0 -22
- package/src/static/Icon.tsx +0 -37
|
@@ -2,7 +2,7 @@ import { useCallback, useMemo } from "react";
|
|
|
2
2
|
import { Button } from "react-bootstrap";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { range } from "lodash";
|
|
5
|
-
import {
|
|
5
|
+
import { DateTime } from "luxon";
|
|
6
6
|
import { CalendarSelect } from "../CalendarSelect";
|
|
7
7
|
import { CalendarProps } from "../../Calendar";
|
|
8
8
|
|
|
@@ -26,14 +26,16 @@ export const CalendarButtons = ({
|
|
|
26
26
|
}: CalendarButtonsProps) => {
|
|
27
27
|
const { t } = useTranslation("Design");
|
|
28
28
|
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
const onSelectMonth = useCallback((value: string) => {
|
|
30
|
+
const selectedMonth = Number(value);
|
|
31
|
+
const nextDateTime = currentDate.set({ month: selectedMonth });
|
|
32
|
+
|
|
33
|
+
if (nextDateTime <= initialDate) {
|
|
34
|
+
setCurrentDate(initialDate);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
33
37
|
|
|
34
|
-
|
|
35
|
-
setCurrentDate((prevDate) => prevDate.minus({ month: 1 }));
|
|
36
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
38
|
+
setCurrentDate(nextDateTime); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
37
39
|
}, []);
|
|
38
40
|
|
|
39
41
|
const yearOptions = useMemo(() => {
|
|
@@ -42,10 +44,18 @@ export const CalendarButtons = ({
|
|
|
42
44
|
});
|
|
43
45
|
}, [initialDate]);
|
|
44
46
|
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
const monthOptions = useMemo(() => {
|
|
48
|
+
const initialMonth =
|
|
49
|
+
currentDate.year > initialDate.year ? 1 : initialDate.month;
|
|
50
|
+
return range(initialMonth, 13).map((monthNumber) => {
|
|
51
|
+
return {
|
|
52
|
+
label: DateTime.fromObject({ month: monthNumber }).toLocaleString({
|
|
53
|
+
month: "long",
|
|
54
|
+
}),
|
|
55
|
+
value: monthNumber,
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
}, [initialDate, currentDate]);
|
|
49
59
|
|
|
50
60
|
const onSelectYear = (value: string) => {
|
|
51
61
|
const selectedYear = Number(value);
|
|
@@ -107,22 +117,12 @@ export const CalendarButtons = ({
|
|
|
107
117
|
<hr />
|
|
108
118
|
<div className="calendar-buttons">
|
|
109
119
|
<div className="buttons-wrapper">
|
|
110
|
-
<
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
<SelectArrow />
|
|
117
|
-
</Button>
|
|
118
|
-
<div className="month-title">{currentDate.toFormat("MMMM")}</div>
|
|
119
|
-
<Button
|
|
120
|
-
className="calendar-button"
|
|
121
|
-
onClick={onSelectNextMonth}
|
|
122
|
-
variant="link"
|
|
123
|
-
>
|
|
124
|
-
<SelectArrow />
|
|
125
|
-
</Button>
|
|
120
|
+
<CalendarSelect
|
|
121
|
+
options={monthOptions}
|
|
122
|
+
onChange={onSelectMonth}
|
|
123
|
+
value={currentDate.month}
|
|
124
|
+
className="ml-4"
|
|
125
|
+
/>
|
|
126
126
|
</div>
|
|
127
127
|
<CalendarSelect
|
|
128
128
|
options={yearOptions}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
Form,
|
|
8
8
|
} from "react-bootstrap";
|
|
9
9
|
import clsx from "clsx";
|
|
10
|
-
import
|
|
10
|
+
import { FaChevronUp, FaChevronDown } from "react-icons/fa";
|
|
11
11
|
|
|
12
12
|
export type CollapsibleInputGroupProps = {
|
|
13
13
|
label: ReactNode;
|
|
@@ -27,8 +27,7 @@ export function CollapsibleInputGroup({
|
|
|
27
27
|
error,
|
|
28
28
|
}: CollapsibleInputGroupProps) {
|
|
29
29
|
const currentEventKey = useContext(AccordionContext);
|
|
30
|
-
|
|
31
|
-
currentEventKey === eventKey ? "chevron-up" : "chevron-down";
|
|
30
|
+
|
|
32
31
|
const isInvalid = Boolean(error);
|
|
33
32
|
|
|
34
33
|
return (
|
|
@@ -42,7 +41,11 @@ export function CollapsibleInputGroup({
|
|
|
42
41
|
>
|
|
43
42
|
<div className="accordion-form-control-header">
|
|
44
43
|
<h5 className="mb-0 pl-3">{label}</h5>
|
|
45
|
-
|
|
44
|
+
{currentEventKey === eventKey ? (
|
|
45
|
+
<FaChevronUp size={20} />
|
|
46
|
+
) : (
|
|
47
|
+
<FaChevronDown size={20} />
|
|
48
|
+
)}
|
|
46
49
|
</div>
|
|
47
50
|
<Collapse in={currentEventKey !== eventKey}>
|
|
48
51
|
<div className="pl-3">{description}</div>
|
|
@@ -3,18 +3,19 @@ import {
|
|
|
3
3
|
CUSTOM_FIELD_TYPE_DROPDOWN,
|
|
4
4
|
CUSTOM_FIELD_TYPE_INPUT,
|
|
5
5
|
} from "@licklist/core/dist/DataMapper/Order/CustomFieldDataMapper";
|
|
6
|
+
import { FaFont, FaListOl } from "react-icons/fa";
|
|
6
7
|
import { SORTABLE_ID_KEY } from "../sortable-list";
|
|
7
8
|
|
|
8
9
|
export const FIELD_TYPES = {
|
|
9
10
|
[CUSTOM_FIELD_TYPE_INPUT]: {
|
|
10
11
|
id: "1",
|
|
11
12
|
label: "Text Input",
|
|
12
|
-
icon:
|
|
13
|
+
icon: <FaFont size={32} />,
|
|
13
14
|
},
|
|
14
15
|
[CUSTOM_FIELD_TYPE_DROPDOWN]: {
|
|
15
16
|
id: "2",
|
|
16
17
|
label: "Dropdown",
|
|
17
|
-
icon:
|
|
18
|
+
icon: <FaListOl size={32} />,
|
|
18
19
|
},
|
|
19
20
|
};
|
|
20
21
|
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
2
2
|
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
import { ReactElement } from "react";
|
|
4
5
|
|
|
5
6
|
interface FieldItemProps {
|
|
6
7
|
label: string;
|
|
7
|
-
icon:
|
|
8
|
+
icon: ReactElement;
|
|
8
9
|
onClick: () => void;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
export function FieldItem({ label, icon, onClick }: FieldItemProps) {
|
|
12
13
|
return (
|
|
13
14
|
<div className="custom-field-item" onClick={onClick}>
|
|
14
|
-
|
|
15
|
+
{icon}
|
|
15
16
|
<h6>{label}</h6>
|
|
16
17
|
</div>
|
|
17
18
|
);
|
|
@@ -11,7 +11,7 @@ import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permi
|
|
|
11
11
|
import HookFormService from "@licklist/plugins/dist/services/Form/HookFormService";
|
|
12
12
|
import { FieldNamePrefixPath } from "@licklist/plugins/dist/types/services/Form/hook-form-service";
|
|
13
13
|
import { Option } from "@licklist/core/dist/DataMapper/Order/CustomFieldDataMapper";
|
|
14
|
-
import {
|
|
14
|
+
import { FaPlus, FaTrashAlt } from "react-icons/fa";
|
|
15
15
|
|
|
16
16
|
interface DropdownFormProps<T>
|
|
17
17
|
extends FieldNamePrefixPath<T>,
|
|
@@ -178,7 +178,7 @@ export function DropdownForm<T>({
|
|
|
178
178
|
trigger();
|
|
179
179
|
}}
|
|
180
180
|
>
|
|
181
|
-
<
|
|
181
|
+
<FaTrashAlt size={20} />
|
|
182
182
|
</button>
|
|
183
183
|
</Form.Group>
|
|
184
184
|
</div>
|
|
@@ -196,7 +196,7 @@ export function DropdownForm<T>({
|
|
|
196
196
|
resetOptionsError();
|
|
197
197
|
}}
|
|
198
198
|
>
|
|
199
|
-
<
|
|
199
|
+
<FaPlus size={18} />
|
|
200
200
|
</Button>
|
|
201
201
|
</div>
|
|
202
202
|
<div className="manual-form-error">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Form, Modal, Button } from "react-bootstrap";
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
3
|
import { Controller, useForm } from "react-hook-form";
|
|
4
|
-
import
|
|
4
|
+
import { FaTimes } from "react-icons/fa";
|
|
5
5
|
|
|
6
6
|
export const MODE_THIS_EVENT = "thisEvent";
|
|
7
7
|
export const MODE_THIS_AND_FOLLOWING_EVENTS = "thisAndFollowingEvents";
|
|
@@ -62,7 +62,7 @@ export const EditRecurrentEventModal = ({
|
|
|
62
62
|
<Modal.Header className="border-0">
|
|
63
63
|
<Modal.Title as="h6">{title}</Modal.Title>
|
|
64
64
|
<Button variant="danger" className="btn-sm rounded" onClick={onHide}>
|
|
65
|
-
<
|
|
65
|
+
<FaTimes size={16} />
|
|
66
66
|
</Button>
|
|
67
67
|
</Modal.Header>
|
|
68
68
|
<Modal.Body className="p-0 ml-4">
|
|
@@ -12,7 +12,13 @@ import { useTranslation } from "react-i18next";
|
|
|
12
12
|
import * as Config from "@licklist/core/dist/Config";
|
|
13
13
|
import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permission";
|
|
14
14
|
import { EventStatistic } from "@licklist/core/dist/DataMapper/Provider/EventStatisticDataMapper";
|
|
15
|
-
import
|
|
15
|
+
import {
|
|
16
|
+
FaEye,
|
|
17
|
+
FaExternalLinkAlt,
|
|
18
|
+
FaEdit,
|
|
19
|
+
FaCopy,
|
|
20
|
+
FaTrashAlt,
|
|
21
|
+
} from "react-icons/fa";
|
|
16
22
|
import { Sale } from "../../types/bookings";
|
|
17
23
|
import { TipTapEditor } from "../../tiptap-editor/TipTapEditor";
|
|
18
24
|
import {
|
|
@@ -159,7 +165,8 @@ export function EventCard({
|
|
|
159
165
|
<ChartBarIcon />
|
|
160
166
|
</button>
|
|
161
167
|
<div className="event-card-views">
|
|
162
|
-
<
|
|
168
|
+
<FaEye />
|
|
169
|
+
|
|
163
170
|
<span>{formatNumber(totalViews)}</span>
|
|
164
171
|
</div>
|
|
165
172
|
</div>
|
|
@@ -169,7 +176,7 @@ export function EventCard({
|
|
|
169
176
|
className="event-card-link-button"
|
|
170
177
|
onClick={onPreview}
|
|
171
178
|
>
|
|
172
|
-
<
|
|
179
|
+
<FaExternalLinkAlt />
|
|
173
180
|
</button>
|
|
174
181
|
{hasPermission && (
|
|
175
182
|
<>
|
|
@@ -178,21 +185,21 @@ export function EventCard({
|
|
|
178
185
|
className="event-card-link-button"
|
|
179
186
|
onClick={onEdit}
|
|
180
187
|
>
|
|
181
|
-
<
|
|
188
|
+
<FaEdit />
|
|
182
189
|
</button>
|
|
183
190
|
<button
|
|
184
191
|
type="button"
|
|
185
192
|
className="event-card-link-button"
|
|
186
193
|
onClick={onCopy}
|
|
187
194
|
>
|
|
188
|
-
<
|
|
195
|
+
<FaCopy />
|
|
189
196
|
</button>
|
|
190
197
|
<button
|
|
191
198
|
type="button"
|
|
192
199
|
className="event-card-link-button"
|
|
193
200
|
onClick={onRemove}
|
|
194
201
|
>
|
|
195
|
-
<
|
|
202
|
+
<FaTrashAlt />
|
|
196
203
|
</button>
|
|
197
204
|
</>
|
|
198
205
|
)}
|
|
@@ -2,7 +2,7 @@ import { Modal, Button } from "react-bootstrap";
|
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
3
|
import { EventStatistic } from "@licklist/core/dist/DataMapper/Provider/EventStatisticDataMapper";
|
|
4
4
|
import { Event } from "@licklist/core/dist/DataMapper/Provider/EventDataMapper";
|
|
5
|
-
import
|
|
5
|
+
import { FaTimes } from "react-icons/fa";
|
|
6
6
|
import { StaticTable } from "../../table";
|
|
7
7
|
import { useTableData } from "./hooks/useTableData";
|
|
8
8
|
|
|
@@ -44,7 +44,7 @@ export const EventStatisticModal = ({
|
|
|
44
44
|
className="btn-sm rounded"
|
|
45
45
|
onClick={handleClose}
|
|
46
46
|
>
|
|
47
|
-
<
|
|
47
|
+
<FaTimes size={16} />
|
|
48
48
|
</Button>
|
|
49
49
|
</Modal.Header>
|
|
50
50
|
<Modal.Body>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Button } from "react-bootstrap";
|
|
2
|
-
import {
|
|
2
|
+
import { FaSearch } from "react-icons/fa";
|
|
3
3
|
import { useZoom } from "../../hooks/useZoom";
|
|
4
4
|
import { CanvasRefs } from "../../types";
|
|
5
5
|
|
|
@@ -13,7 +13,7 @@ export const ZoomButtons = ({
|
|
|
13
13
|
<div className="zoom-buttons">
|
|
14
14
|
<div className="buttons-wrapper">
|
|
15
15
|
<div className="icon-wrapper mb-1">
|
|
16
|
-
<
|
|
16
|
+
<FaSearch size={16} />
|
|
17
17
|
</div>
|
|
18
18
|
<Button onClick={onZoomOut} className="mb-1">
|
|
19
19
|
-
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
} from "@licklist/core/dist/DataMapper/Media/ImageDataMapper";
|
|
5
5
|
import { Attachment } from "@licklist/core/dist/DataMapper/Notification/AttachmentDataMapper";
|
|
6
6
|
import { AttachmentMetadata } from "@licklist/core/dist/DataMapper/Notification/AttachmentMetadataDataMapper";
|
|
7
|
-
|
|
8
|
-
import {
|
|
7
|
+
import { FaFile, FaFilePdf, FaTimes } from "react-icons/fa";
|
|
8
|
+
import { Image as ImageComponent } from "../static";
|
|
9
9
|
|
|
10
10
|
type Item = File | Image | Attachment | AttachmentMetadata;
|
|
11
11
|
|
|
@@ -65,7 +65,7 @@ export function PreviewItem({ disabled, item, onRemove }: PreviewItemProps) {
|
|
|
65
65
|
}}
|
|
66
66
|
disabled={disabled}
|
|
67
67
|
>
|
|
68
|
-
<
|
|
68
|
+
<FaTimes />
|
|
69
69
|
</button>
|
|
70
70
|
{renderItemPreview(item)}
|
|
71
71
|
</div>
|
|
@@ -129,11 +129,7 @@ const renderFileTypeIcon = (itemName?: string) => {
|
|
|
129
129
|
|
|
130
130
|
return (
|
|
131
131
|
<div className="preview-item__file">
|
|
132
|
-
{isPdfFile ?
|
|
133
|
-
<Icon type="file-pdf" height="5rem" />
|
|
134
|
-
) : (
|
|
135
|
-
<Icon type="file" height="5rem" />
|
|
136
|
-
)}
|
|
132
|
+
{isPdfFile ? <FaFilePdf size={80} /> : <FaFile size={80} />}
|
|
137
133
|
</div>
|
|
138
134
|
);
|
|
139
135
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import Nav from "react-bootstrap/Nav";
|
|
2
|
-
import Icon from "../static/Icon";
|
|
3
2
|
import StyledButton from "../static/StyledButton";
|
|
4
3
|
import BookeditHeader from "./BookeditHeader";
|
|
5
4
|
import CompanySelector from "./elements/CompanySelector";
|
|
@@ -29,7 +28,7 @@ export const Licklist = () => (
|
|
|
29
28
|
<ul className="navbar-nav bd-navbar-nav flex-row navbar-nav-primary">
|
|
30
29
|
<li className="nav-item px-3 px-sm-3 px-lg-4">
|
|
31
30
|
<Nav.Link href="#">
|
|
32
|
-
<
|
|
31
|
+
<FaSearch />
|
|
33
32
|
</Nav.Link>
|
|
34
33
|
</li>
|
|
35
34
|
<li className="nav-item px-3 px-sm-4 d-none d-sm-inline">
|
|
@@ -5,7 +5,7 @@ import OverlayTrigger from "react-bootstrap/OverlayTrigger";
|
|
|
5
5
|
import Popover from "react-bootstrap/Popover";
|
|
6
6
|
import { ButtonVariant } from "react-bootstrap/types";
|
|
7
7
|
import clsx from "clsx";
|
|
8
|
-
import
|
|
8
|
+
import { FaQuestion } from "react-icons/fa";
|
|
9
9
|
|
|
10
10
|
export type HelpPopoverProps = {
|
|
11
11
|
children?: React.ReactElement | React.ReactElement[];
|
|
@@ -47,7 +47,7 @@ export function HelpPopover({
|
|
|
47
47
|
{...triggerHandler}
|
|
48
48
|
className="btn-icon-popover rounded-circle px-2 py-1 d-inline-flex align-items-center"
|
|
49
49
|
>
|
|
50
|
-
{icon ?? <
|
|
50
|
+
{icon ?? <FaQuestion size={10} />}
|
|
51
51
|
</Button>
|
|
52
52
|
)}
|
|
53
53
|
</OverlayTrigger>
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
OrderItems,
|
|
10
10
|
} from "@licklist/plugins/dist/types/context/Iframe/orderItems";
|
|
11
11
|
import { Product } from "@licklist/plugins/dist/types/context/sale/menuSteps";
|
|
12
|
+
import { useContext } from "react";
|
|
13
|
+
import { FaAngleRight, FaTimes } from "react-icons/fa";
|
|
12
14
|
import { NumberInput } from "../../../../../static";
|
|
13
|
-
import Icon from "../../../../../static/Icon";
|
|
14
15
|
import { SetOrderFn } from "../../../../../types";
|
|
15
|
-
import { useContext } from "react";
|
|
16
16
|
|
|
17
17
|
interface CustomToggleProps {
|
|
18
18
|
eventKey: string;
|
|
@@ -49,7 +49,7 @@ function CustomToggle({
|
|
|
49
49
|
return (
|
|
50
50
|
<Card.Header className="accordion-toggle p-4" onClick={decoratedOnClick}>
|
|
51
51
|
<div className={contentClassName}>{children}</div>
|
|
52
|
-
<
|
|
52
|
+
<FaAngleRight className={iconClassName} size={24} />
|
|
53
53
|
</Card.Header>
|
|
54
54
|
);
|
|
55
55
|
}
|
|
@@ -152,12 +152,7 @@ function ProductItem({
|
|
|
152
152
|
value={order[id]?.quantity || 0}
|
|
153
153
|
className="product-item__counter"
|
|
154
154
|
/>
|
|
155
|
-
<
|
|
156
|
-
className="product-item__icon m-3"
|
|
157
|
-
type="times"
|
|
158
|
-
height="1rem"
|
|
159
|
-
width="1rem"
|
|
160
|
-
/>
|
|
155
|
+
<FaTimes className="product-item__icon m-3" size={16} />
|
|
161
156
|
<div className="product-item__price">
|
|
162
157
|
{formatNumber(price * (order[id]?.quantity || 1), {
|
|
163
158
|
style: "currency",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useTranslation } from "react-i18next";
|
|
2
2
|
import Button from "react-bootstrap/Button";
|
|
3
3
|
import RouteService from "@licklist/plugins/dist/services/Route/RouteService";
|
|
4
|
-
import
|
|
4
|
+
import { FaArrowLeft, FaArrowRight } from "react-icons/fa";
|
|
5
5
|
|
|
6
6
|
interface PaginationDotsProps {
|
|
7
7
|
amount: number;
|
|
@@ -54,7 +54,7 @@ export function EventNavigationFooter({
|
|
|
54
54
|
className="event-fixed-footer__prev-btn m-0"
|
|
55
55
|
onClick={onPrevButtonClick}
|
|
56
56
|
>
|
|
57
|
-
<
|
|
57
|
+
<FaArrowLeft size={16} />
|
|
58
58
|
</Button>
|
|
59
59
|
{amount > 1 && (
|
|
60
60
|
<PaginationDots amount={amount} activeElement={activeElement} />
|
|
@@ -67,11 +67,12 @@ export function EventNavigationFooter({
|
|
|
67
67
|
{...submitButtonProps}
|
|
68
68
|
>
|
|
69
69
|
{t("continue")}
|
|
70
|
-
<
|
|
70
|
+
<FaArrowRight size={16} className="ml-2" />
|
|
71
71
|
</Button>
|
|
72
72
|
) : (
|
|
73
73
|
<Button className="m-0" onClick={onNextClick}>
|
|
74
|
-
{t("next")}
|
|
74
|
+
{t("next")}
|
|
75
|
+
<FaArrowRight size={16} className="ml-2" />
|
|
75
76
|
</Button>
|
|
76
77
|
)}
|
|
77
78
|
</>
|
package/src/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import { useTranslation } from "react-i18next";
|
|
|
3
3
|
import { useAccordionToggle } from "react-bootstrap/AccordionToggle";
|
|
4
4
|
import AccordionContext from "react-bootstrap/AccordionContext";
|
|
5
5
|
import clsx from "clsx";
|
|
6
|
-
import {
|
|
6
|
+
import { FaChevronDown, FaChevronUp } from "react-icons/fa";
|
|
7
7
|
import { ACCORDION_KEY } from "../../types";
|
|
8
8
|
|
|
9
9
|
type ToggleHeaderProps = {
|
|
@@ -91,14 +91,11 @@ const HeaderContent = ({
|
|
|
91
91
|
<p className="m-0 mr-2 toggle-title">{title || t("yourBooking")}</p>
|
|
92
92
|
{showExpandButton && (
|
|
93
93
|
<div className="expand-button">
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
width="0.5rem"
|
|
101
|
-
/>
|
|
94
|
+
{currentEventKey === ACCORDION_KEY ? (
|
|
95
|
+
<FaChevronUp size={8} />
|
|
96
|
+
) : (
|
|
97
|
+
<FaChevronDown size={8} />
|
|
98
|
+
)}
|
|
102
99
|
</div>
|
|
103
100
|
)}
|
|
104
101
|
</div>
|
|
@@ -114,12 +111,11 @@ const HeaderContent = ({
|
|
|
114
111
|
|
|
115
112
|
{showExpandButton && (
|
|
116
113
|
<div className="expand-button">
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/>
|
|
114
|
+
{currentEventKey === ACCORDION_KEY ? (
|
|
115
|
+
<FaChevronUp size={16} />
|
|
116
|
+
) : (
|
|
117
|
+
<FaChevronDown size={16} />
|
|
118
|
+
)}
|
|
123
119
|
</div>
|
|
124
120
|
)}
|
|
125
121
|
</>
|
package/src/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.tsx
CHANGED
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
Product,
|
|
8
8
|
ProductCategory,
|
|
9
9
|
} from "@licklist/plugins/dist/types/context/sale/menuSteps";
|
|
10
|
+
import { FaTimes } from "react-icons/fa";
|
|
10
11
|
import { CategoryProduct } from "../../CategoryProduct";
|
|
11
|
-
import Icon from "../../../../../static/Icon";
|
|
12
12
|
|
|
13
13
|
export type CategoryProductModalProps = {
|
|
14
14
|
activePointId?: number;
|
|
@@ -57,7 +57,7 @@ export const CategoryProductModal = ({
|
|
|
57
57
|
className="btn-sm rounded"
|
|
58
58
|
onClick={onCloseModal}
|
|
59
59
|
>
|
|
60
|
-
<
|
|
60
|
+
<FaTimes />
|
|
61
61
|
</Button>
|
|
62
62
|
</div>
|
|
63
63
|
</div>
|
|
@@ -4,7 +4,7 @@ import ModalHeader from "react-bootstrap/ModalHeader";
|
|
|
4
4
|
import ModalTitle from "react-bootstrap/ModalTitle";
|
|
5
5
|
import ModalBody from "react-bootstrap/ModalBody";
|
|
6
6
|
import Modal from "react-bootstrap/Modal";
|
|
7
|
-
import
|
|
7
|
+
import { FaTimes } from "react-icons/fa";
|
|
8
8
|
|
|
9
9
|
export interface ErrorModalProps {
|
|
10
10
|
isOpen: boolean;
|
|
@@ -43,7 +43,7 @@ export const ErrorModal = ({
|
|
|
43
43
|
className="btn-sm rounded"
|
|
44
44
|
onClick={handleClose}
|
|
45
45
|
>
|
|
46
|
-
<
|
|
46
|
+
<FaTimes />
|
|
47
47
|
</Button>
|
|
48
48
|
</ModalHeader>
|
|
49
49
|
<ModalBody className="confirmation-modal-body">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
3
|
import Button from "react-bootstrap/Button";
|
|
4
|
-
import
|
|
4
|
+
import { FaArrowLeft, FaArrowRight } from "react-icons/fa";
|
|
5
5
|
|
|
6
6
|
interface NavigationFooterProps {
|
|
7
7
|
onPrevStep: () => void;
|
|
@@ -32,12 +32,12 @@ export const NavigationFooter = ({
|
|
|
32
32
|
className="event-fixed-footer__prev-btn m-0"
|
|
33
33
|
onClick={onPrevButtonClick}
|
|
34
34
|
>
|
|
35
|
-
<
|
|
35
|
+
<FaArrowLeft />
|
|
36
36
|
</Button>
|
|
37
37
|
|
|
38
38
|
<Button className="m-0" disabled={isButtonDisabled} {...buttonProps}>
|
|
39
39
|
{nextButtonLabel ?? t("continue")}
|
|
40
|
-
<
|
|
40
|
+
<FaArrowRight className="ml-2" />
|
|
41
41
|
</Button>
|
|
42
42
|
</div>
|
|
43
43
|
);
|
|
@@ -4,7 +4,7 @@ import { useIntl } from "react-intl";
|
|
|
4
4
|
import * as Config from "@licklist/core/dist/Config";
|
|
5
5
|
import { Order } from "@licklist/core/dist/DataMapper/Order/OrderDataMapper";
|
|
6
6
|
import { PaymentDetail } from "@licklist/core/dist/DataMapper/Order/PaymentDetailDataMapper";
|
|
7
|
-
import {
|
|
7
|
+
import { FaCreditCard } from "react-icons/fa";
|
|
8
8
|
|
|
9
9
|
export type PaymentCardProps = {
|
|
10
10
|
discountBlock?: ReactNode;
|
|
@@ -71,7 +71,7 @@ export const PaymentCard: FC<PaymentCardProps> = ({
|
|
|
71
71
|
return (
|
|
72
72
|
<div className="payment-card">
|
|
73
73
|
<div className="title">
|
|
74
|
-
<
|
|
74
|
+
<FaCreditCard />
|
|
75
75
|
<p className="m-0">{t("Design:payment")}</p>
|
|
76
76
|
</div>
|
|
77
77
|
<div className="payment-summary mb-5">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useTranslation } from "react-i18next";
|
|
2
|
+
import { FaStopwatch } from "react-icons/fa";
|
|
2
3
|
import { fancyTimeFormat } from "./utils";
|
|
3
|
-
import { Icon } from "../../../../static";
|
|
4
4
|
|
|
5
5
|
export type TimerProps = {
|
|
6
6
|
timer: number;
|
|
@@ -14,7 +14,7 @@ export const Timer = ({ timer }: TimerProps) => {
|
|
|
14
14
|
<div className="timer-wrapper ">
|
|
15
15
|
<div className="timer">
|
|
16
16
|
<div className="d-flex align-items-center">
|
|
17
|
-
<
|
|
17
|
+
<FaStopwatch />
|
|
18
18
|
</div>
|
|
19
19
|
<div className="time">{fancyTimeFormat(timer)}</div>
|
|
20
20
|
</div>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, Story } from "@storybook/react";
|
|
2
2
|
import { FormProvider, useForm } from "react-hook-form";
|
|
3
|
+
import { FaBars } from "react-icons/fa";
|
|
3
4
|
import { ImageRadioInput, ImageRadioInputProps } from "./ImageRadioInput";
|
|
4
5
|
import { ReactComponent as MonthIcon } from "../assets/widgets/monthCalendar.svg";
|
|
5
|
-
import Icon from "../static/Icon";
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
title: "ImageRadioInput",
|
|
@@ -30,7 +30,7 @@ Default.args = {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
export const WithFontAwesomeIcon: Story<ImageRadioInputProps<FormModel>> = (
|
|
33
|
-
args
|
|
33
|
+
args,
|
|
34
34
|
) => {
|
|
35
35
|
const form = useForm();
|
|
36
36
|
|
|
@@ -42,7 +42,7 @@ export const WithFontAwesomeIcon: Story<ImageRadioInputProps<FormModel>> = (
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
WithFontAwesomeIcon.args = {
|
|
45
|
-
img: <
|
|
45
|
+
img: <FaBars />,
|
|
46
46
|
label: "List",
|
|
47
47
|
name: "test",
|
|
48
48
|
};
|
package/src/layout/DropDown.tsx
CHANGED
|
@@ -6,7 +6,7 @@ import ModalTitle from "react-bootstrap/ModalTitle";
|
|
|
6
6
|
import ModalBody from "react-bootstrap/ModalBody";
|
|
7
7
|
import ModalFooter from "react-bootstrap/ModalFooter";
|
|
8
8
|
import Modal from "react-bootstrap/Modal";
|
|
9
|
-
import
|
|
9
|
+
import { FaTimes } from "react-icons/fa";
|
|
10
10
|
|
|
11
11
|
export type ConfirmAction = () => void;
|
|
12
12
|
export const ConfirmModalType = {
|
|
@@ -91,7 +91,7 @@ export function ConfirmModal({
|
|
|
91
91
|
onClick={handleClose}
|
|
92
92
|
data-id={CONFIRM_MODAL_ACTION_DECLINE}
|
|
93
93
|
>
|
|
94
|
-
<
|
|
94
|
+
<FaTimes size={16} />
|
|
95
95
|
</Button>
|
|
96
96
|
</ModalHeader>
|
|
97
97
|
<ModalBody className="confirmation-modal-body">
|