@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
|
@@ -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 interface FullscreenModalProps {
|
|
12
12
|
children?: (confirm: () => void) => ReactNode;
|
|
@@ -63,7 +63,7 @@ export const FullscreenModal = ({
|
|
|
63
63
|
className="btn-sm rounded"
|
|
64
64
|
onClick={handleClose}
|
|
65
65
|
>
|
|
66
|
-
<
|
|
66
|
+
<FaTimes size={16} />
|
|
67
67
|
</Button>
|
|
68
68
|
</ModalHeader>
|
|
69
69
|
)}
|
|
@@ -2,8 +2,8 @@ import { Link } from "react-router-dom";
|
|
|
2
2
|
import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permission";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { NotificationType } from "@licklist/core/dist/DataMapper/Notification/NotificationTypeDataMapper";
|
|
5
|
+
import { FaTrashAlt, FaCopy } from "react-icons/fa";
|
|
5
6
|
import { ConfirmModal, ConfirmModalType } from "../../../modals";
|
|
6
|
-
import { Icon } from "../../../static";
|
|
7
7
|
import { useTranslatedParameters } from "../../hooks/useTranslatedParameters";
|
|
8
8
|
|
|
9
9
|
export interface EmailTemplateCardProps extends HasPermissionProp {
|
|
@@ -53,7 +53,7 @@ export function EmailTemplateCard({
|
|
|
53
53
|
confirm(onRemove);
|
|
54
54
|
}}
|
|
55
55
|
>
|
|
56
|
-
<
|
|
56
|
+
<FaTrashAlt />
|
|
57
57
|
</button>
|
|
58
58
|
)}
|
|
59
59
|
</ConfirmModal>
|
|
@@ -63,7 +63,7 @@ export function EmailTemplateCard({
|
|
|
63
63
|
className="snippet-template-card-button"
|
|
64
64
|
onClick={onDuplicate}
|
|
65
65
|
>
|
|
66
|
-
<
|
|
66
|
+
<FaCopy />
|
|
67
67
|
</button>
|
|
68
68
|
</div>
|
|
69
69
|
<div className={`mt-${isDefault ? "3" : "4"}`}>
|
|
@@ -2,8 +2,8 @@ import { Link } from "react-router-dom";
|
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
3
|
import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permission";
|
|
4
4
|
import { NotificationType } from "@licklist/core/dist/DataMapper/Notification/NotificationTypeDataMapper";
|
|
5
|
+
import { FaCopy, FaTrashAlt } from "react-icons/fa";
|
|
5
6
|
import { ConfirmModal, ConfirmModalType } from "../../../modals";
|
|
6
|
-
import { Icon } from "../../../static";
|
|
7
7
|
import { useTranslatedParameters } from "../../hooks/useTranslatedParameters";
|
|
8
8
|
|
|
9
9
|
export interface SmsTemplateCardProps extends HasPermissionProp {
|
|
@@ -51,7 +51,7 @@ export function SmsTemplateCard({
|
|
|
51
51
|
confirm(onRemove);
|
|
52
52
|
}}
|
|
53
53
|
>
|
|
54
|
-
<
|
|
54
|
+
<FaTrashAlt />
|
|
55
55
|
</button>
|
|
56
56
|
)}
|
|
57
57
|
</ConfirmModal>
|
|
@@ -61,7 +61,7 @@ export function SmsTemplateCard({
|
|
|
61
61
|
className="snippet-template-card-button"
|
|
62
62
|
onClick={onDuplicate}
|
|
63
63
|
>
|
|
64
|
-
<
|
|
64
|
+
<FaCopy />
|
|
65
65
|
</button>
|
|
66
66
|
</div>
|
|
67
67
|
<div className="mt-2">
|
|
@@ -6,9 +6,8 @@ import clsx from "clsx";
|
|
|
6
6
|
import { useId } from "@react-aria/utils";
|
|
7
7
|
import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permission";
|
|
8
8
|
import RouteService from "@licklist/plugins/dist/services/Route/RouteService";
|
|
9
|
-
|
|
9
|
+
import { FaEllipsisH, FaEye, FaTrashAlt } from "react-icons/fa";
|
|
10
10
|
import { ConfirmModal } from "../../modals";
|
|
11
|
-
import { Icon } from "../../static";
|
|
12
11
|
import { MenuButton } from "../../table/MenuButton";
|
|
13
12
|
|
|
14
13
|
export interface ProductSetCardProps extends HasPermissionProp {
|
|
@@ -59,7 +58,7 @@ export function ProductSetCard({
|
|
|
59
58
|
</div>
|
|
60
59
|
<div className="d-flex">
|
|
61
60
|
<div className="product-set-card-menu-eye-container">
|
|
62
|
-
<
|
|
61
|
+
<FaEye color="#0E8CE2" size={20} />
|
|
63
62
|
</div>
|
|
64
63
|
<OverlayTrigger
|
|
65
64
|
trigger="click"
|
|
@@ -106,7 +105,7 @@ export function ProductSetCard({
|
|
|
106
105
|
confirm(onRemove);
|
|
107
106
|
}}
|
|
108
107
|
name={t("remove")}
|
|
109
|
-
icon=
|
|
108
|
+
icon={<FaTrashAlt size={12} />}
|
|
110
109
|
className="product-set-card-menu-item-text d-flex w-100 align-items-center"
|
|
111
110
|
rightIcon
|
|
112
111
|
/>
|
|
@@ -128,7 +127,7 @@ export function ProductSetCard({
|
|
|
128
127
|
setIsOverlayVisible(true);
|
|
129
128
|
}}
|
|
130
129
|
>
|
|
131
|
-
<
|
|
130
|
+
<FaEllipsisH />
|
|
132
131
|
</button>
|
|
133
132
|
</OverlayTrigger>
|
|
134
133
|
</div>
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
} from "@dnd-kit/sortable";
|
|
17
17
|
|
|
18
18
|
import { restrictToVerticalAxis } from "@dnd-kit/modifiers";
|
|
19
|
+
import { FaPlusCircle } from "react-icons/fa";
|
|
19
20
|
import { CONFIRM_MODAL_ACTIONS } from "../../modals/confirmation/ConfirmModal";
|
|
20
|
-
import { Icon } from "../../static";
|
|
21
21
|
import {
|
|
22
22
|
RecurringDatePickerInput,
|
|
23
23
|
RecurringDatePickerInputValues,
|
|
@@ -287,9 +287,8 @@ export const DateAndRecurrenceInput = ({
|
|
|
287
287
|
onClick={handleOnAdd}
|
|
288
288
|
onKeyDown={handleOnAdd}
|
|
289
289
|
>
|
|
290
|
-
<
|
|
291
|
-
|
|
292
|
-
height="1rem"
|
|
290
|
+
<FaPlusCircle
|
|
291
|
+
size={16}
|
|
293
292
|
className="product-set-recurrence-icon-add mr-2"
|
|
294
293
|
/>
|
|
295
294
|
{t("addDates")}
|
|
@@ -11,9 +11,9 @@ import { DateTime } from "luxon";
|
|
|
11
11
|
import RRule, { Frequency } from "rrule";
|
|
12
12
|
import { WorkHour } from "@licklist/core/dist/DataMapper/Provider/WorkHourDataMapper";
|
|
13
13
|
|
|
14
|
+
import { FaPlusCircle } from "react-icons/fa";
|
|
14
15
|
import { DatePickerInput } from "../../recurring-date-picker-input/DatePickerInput";
|
|
15
16
|
import { CONFIRM_MODAL_ACTIONS } from "../../modals/confirmation/ConfirmModal";
|
|
16
|
-
import { Icon } from "../../static";
|
|
17
17
|
|
|
18
18
|
import {
|
|
19
19
|
AvailableTimesControl,
|
|
@@ -260,11 +260,11 @@ export const DateInput = ({
|
|
|
260
260
|
onClick={handleOnAdd}
|
|
261
261
|
onKeyDown={handleOnAdd}
|
|
262
262
|
>
|
|
263
|
-
<
|
|
264
|
-
|
|
265
|
-
height="1rem"
|
|
263
|
+
<FaPlusCircle
|
|
264
|
+
size={16}
|
|
266
265
|
className="product-set-recurrence-icon-add mr-2"
|
|
267
266
|
/>
|
|
267
|
+
|
|
268
268
|
{t("addDates")}
|
|
269
269
|
</div>
|
|
270
270
|
)}
|
|
@@ -5,7 +5,7 @@ import { ProductSetRecurrence } from "@licklist/core/dist/DataMapper/Product/Pro
|
|
|
5
5
|
|
|
6
6
|
import { useSortable } from "@dnd-kit/sortable";
|
|
7
7
|
import { CSS } from "@dnd-kit/utilities";
|
|
8
|
-
import {
|
|
8
|
+
import { FaCalendar, FaEllipsisH } from "react-icons/fa";
|
|
9
9
|
|
|
10
10
|
export interface ProductSetRecurrenceControlProps {
|
|
11
11
|
menuRecurrence?: { _id: string } & Partial<ProductSetRecurrence>;
|
|
@@ -47,11 +47,11 @@ export const ProductSetRecurrenceControl = ({
|
|
|
47
47
|
className="product-set-recurrence d-flex flex-column mr-0 mb-3 p-3 px-4 flex-grow-1"
|
|
48
48
|
>
|
|
49
49
|
<span className="d-flex flex-row align-items-center">
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
height="1rem"
|
|
50
|
+
<FaCalendar
|
|
51
|
+
size={16}
|
|
53
52
|
className="product-set-recurrence-icon-calendar"
|
|
54
53
|
/>
|
|
54
|
+
|
|
55
55
|
<span className="product-set-recurrence-title d-flex flex-grow-1">
|
|
56
56
|
{t("from")}{" "}
|
|
57
57
|
{formatDate(menuRecurrence.startDate, {
|
|
@@ -74,9 +74,8 @@ export const ProductSetRecurrenceControl = ({
|
|
|
74
74
|
onClick={() => onEdit(menuRecurrence)}
|
|
75
75
|
onKeyDown={() => onEdit(menuRecurrence)}
|
|
76
76
|
>
|
|
77
|
-
<
|
|
78
|
-
|
|
79
|
-
height="1rem"
|
|
77
|
+
<FaEllipsisH
|
|
78
|
+
size={16}
|
|
80
79
|
className="product-set-recurrence-icon-more"
|
|
81
80
|
/>
|
|
82
81
|
</div>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { useIntl } from "react-intl";
|
|
2
2
|
import { ProductSetRecurrence } from "@licklist/core/dist/DataMapper/Product/ProductSetRecurrenceDataMapper";
|
|
3
|
-
|
|
4
|
-
import { Icon } from "../../static";
|
|
3
|
+
import { FaCalendar, FaEllipsisH } from "react-icons/fa";
|
|
5
4
|
|
|
6
5
|
export interface ProductSetRecurrenceControlProps {
|
|
7
6
|
menuRecurrence?: { _id: string } & Partial<ProductSetRecurrence>;
|
|
@@ -23,9 +22,8 @@ export const ProductSetRecurrenceOverridesControl = ({
|
|
|
23
22
|
className="product-set-recurrence d-flex flex-column mr-0 mb-3 p-3 px-4 flex-grow-1"
|
|
24
23
|
>
|
|
25
24
|
<span className="d-flex flex-row align-items-center">
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
height="1rem"
|
|
25
|
+
<FaCalendar
|
|
26
|
+
size={16}
|
|
29
27
|
className="product-set-recurrence-icon-calendar"
|
|
30
28
|
/>
|
|
31
29
|
<span className="product-set-recurrence-title d-flex flex-grow-1">
|
|
@@ -41,9 +39,8 @@ export const ProductSetRecurrenceOverridesControl = ({
|
|
|
41
39
|
onClick={() => onEdit(menuRecurrence)}
|
|
42
40
|
onKeyDown={() => onEdit(menuRecurrence)}
|
|
43
41
|
>
|
|
44
|
-
<
|
|
45
|
-
|
|
46
|
-
height="1rem"
|
|
42
|
+
<FaEllipsisH
|
|
43
|
+
size={16}
|
|
47
44
|
className="product-set-recurrence-icon-more"
|
|
48
45
|
/>
|
|
49
46
|
</div>
|
|
@@ -4,8 +4,8 @@ import Card from "react-bootstrap/Card";
|
|
|
4
4
|
import { useLocation } from "react-router-dom";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
6
|
import { Button } from "react-bootstrap";
|
|
7
|
-
|
|
8
|
-
import {
|
|
7
|
+
import { FaCheck, FaTimes } from "react-icons/fa";
|
|
8
|
+
import { Image } from "../../static";
|
|
9
9
|
|
|
10
10
|
export interface TutorialGifCardProps {
|
|
11
11
|
tutorialAsset?: string;
|
|
@@ -26,12 +26,10 @@ const TutorialGifCard = ({
|
|
|
26
26
|
<Card className={`tutorial-card ${!isVisible && "hidden"}`}>
|
|
27
27
|
<Card.Header className="tutorial-card-header">
|
|
28
28
|
<div>
|
|
29
|
-
<
|
|
30
|
-
type="check"
|
|
29
|
+
<FaCheck
|
|
31
30
|
color="white"
|
|
32
|
-
height="0.9rem"
|
|
33
|
-
width="0.9rem"
|
|
34
31
|
className="rounded product-set-item-icon"
|
|
32
|
+
size={14}
|
|
35
33
|
/>
|
|
36
34
|
<span>{t("bookedTopTip")}</span>
|
|
37
35
|
</div>
|
|
@@ -41,12 +39,7 @@ const TutorialGifCard = ({
|
|
|
41
39
|
type="button"
|
|
42
40
|
>
|
|
43
41
|
<span>{t("gotIt")}</span>
|
|
44
|
-
<
|
|
45
|
-
type="times"
|
|
46
|
-
height="1.125rem"
|
|
47
|
-
width="1.125rem"
|
|
48
|
-
className="rounded tutorial-close-icon p-1"
|
|
49
|
-
/>
|
|
42
|
+
<FaTimes size={18} className="rounded tutorial-close-icon p-1" />
|
|
50
43
|
</button>
|
|
51
44
|
</Card.Header>
|
|
52
45
|
<Card.Body className="tutorial-card-body">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button } from "react-bootstrap";
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
|
+
import { FaTrashAlt } from "react-icons/fa";
|
|
3
4
|
import { IsDeletableEvent } from "../types";
|
|
4
|
-
import Icon from "../../static/Icon";
|
|
5
5
|
|
|
6
6
|
export type DeleteFieldButtonProps = IsDeletableEvent;
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ export function DeleteFieldButton({ onDelete }: DeleteFieldButtonProps) {
|
|
|
14
14
|
variant="outline-danger"
|
|
15
15
|
className="d-flex align-items-center"
|
|
16
16
|
>
|
|
17
|
-
<
|
|
17
|
+
<FaTrashAlt size={16} />{" "}
|
|
18
18
|
<span className="d-none d-sm-inline ml-2">{t("delete")}</span>
|
|
19
19
|
</Button>
|
|
20
20
|
);
|
|
@@ -1,47 +1,17 @@
|
|
|
1
1
|
import { Button } from "react-bootstrap";
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
3
|
|
|
4
|
-
// @TODO Modal hided for first release.
|
|
5
|
-
|
|
6
4
|
export function MobileFooter() {
|
|
7
5
|
const { t } = useTranslation("Design");
|
|
8
|
-
// const [isModalVisible, setIsModalVisible] = useState(false);
|
|
9
6
|
|
|
10
7
|
return (
|
|
11
|
-
|
|
12
|
-
<div
|
|
13
|
-
|
|
14
|
-
className={`d-block d-sm-none bg-white border-top fixed-bottom
|
|
8
|
+
<div className="container product-set-mobile-footer">
|
|
9
|
+
<div
|
|
10
|
+
className={`d-block d-sm-none bg-white border-top fixed-bottom
|
|
15
11
|
py-4 px-5 d-flex justify-content-between flex-row-reverse`}
|
|
16
|
-
>
|
|
17
|
-
{/* <Button
|
|
18
|
-
variant="outline-primary"
|
|
19
|
-
size="sm"
|
|
20
|
-
className="btn-icon-popover rounded-circle"
|
|
21
|
-
onClick={() => setIsModalVisible(true)}
|
|
22
|
-
>
|
|
23
|
-
<Icon type="plus" width=".9rem" />
|
|
24
|
-
</Button> */}
|
|
25
|
-
<Button type="submit">{t("save")}</Button>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
{/* <Modal
|
|
29
|
-
show={isModalVisible}
|
|
30
|
-
onHide={() => setIsModalVisible(false)}
|
|
31
|
-
dialogClassName="product-set-mobile-modal fixed-bottom"
|
|
32
|
-
animation={false}
|
|
33
12
|
>
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
{/* @TODO: Implement logic here */}
|
|
38
|
-
{/* <p>Substet 1</p>
|
|
39
|
-
<p>Subset 2</p>
|
|
40
|
-
<p className="mb-0">Subset 3</p>
|
|
41
|
-
</Tabs.Tab>
|
|
42
|
-
</Tabs>
|
|
43
|
-
</Modal.Body>
|
|
44
|
-
</Modal> */}
|
|
45
|
-
</>
|
|
13
|
+
<Button type="submit">{t("save")}</Button>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
46
16
|
);
|
|
47
17
|
}
|
|
@@ -22,7 +22,7 @@ import { Step } from "../types";
|
|
|
22
22
|
import { ProductSetContextProvider, ProductSetLoadingContext } from "./context";
|
|
23
23
|
import { SelectItem } from "../../types/generic/SelectItem";
|
|
24
24
|
import { checkAvailableTimesErrors, getFilteredTemplates } from "../utils";
|
|
25
|
-
import { ErrorModal } from "
|
|
25
|
+
import { ErrorModal } from "../../iframe/order-process/components/ErrorModal";
|
|
26
26
|
|
|
27
27
|
export interface WithIsLoading {
|
|
28
28
|
isLoading: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
2
|
-
import { useContext, useState } from "react";
|
|
2
|
+
import { ReactElement, useContext, useState } from "react";
|
|
3
3
|
import { Button, Carousel, Modal, ModalBody } from "react-bootstrap";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
5
|
import {
|
|
@@ -14,7 +14,15 @@ import {
|
|
|
14
14
|
import ModalHeader from "react-bootstrap/ModalHeader";
|
|
15
15
|
import ModalTitle from "react-bootstrap/ModalTitle";
|
|
16
16
|
import Col from "react-bootstrap/Col";
|
|
17
|
-
import
|
|
17
|
+
import {
|
|
18
|
+
FaArrowLeft,
|
|
19
|
+
FaArrowRight,
|
|
20
|
+
FaBars,
|
|
21
|
+
FaBowlingBall,
|
|
22
|
+
FaCalendar,
|
|
23
|
+
FaTicketAlt,
|
|
24
|
+
FaTimes,
|
|
25
|
+
} from "react-icons/fa";
|
|
18
26
|
import { ProductSetLoadingContext } from "./context";
|
|
19
27
|
|
|
20
28
|
const CATEGORY_TYPES_NAMES = {
|
|
@@ -25,31 +33,31 @@ const CATEGORY_TYPES_NAMES = {
|
|
|
25
33
|
fixedDuration: CATEGORY_TYPE_FIXED_DURATION,
|
|
26
34
|
} as const;
|
|
27
35
|
|
|
28
|
-
type CategoryConfig = { label: string; icon:
|
|
36
|
+
type CategoryConfig = { label: string; icon: ReactElement };
|
|
29
37
|
|
|
30
38
|
const MAIN_CATEGORIES: Partial<Record<CategoryType, CategoryConfig>> = {
|
|
31
39
|
[CATEGORY_TYPES_NAMES.tickets]: {
|
|
32
40
|
label: "tickets",
|
|
33
|
-
icon: "
|
|
41
|
+
icon: <FaTicketAlt color="#0e8ce2" size={32} />,
|
|
34
42
|
},
|
|
35
43
|
[CATEGORY_TYPES_NAMES.bookings]: {
|
|
36
44
|
label: "bookings",
|
|
37
|
-
icon: "
|
|
45
|
+
icon: <FaCalendar color="#0e8ce2" size={32} />,
|
|
38
46
|
},
|
|
39
47
|
[CATEGORY_TYPES_NAMES.menuItems]: {
|
|
40
48
|
label: "menuItems",
|
|
41
|
-
icon: "
|
|
49
|
+
icon: <FaBars color="#0e8ce2" size={32} />,
|
|
42
50
|
},
|
|
43
51
|
};
|
|
44
52
|
|
|
45
53
|
const BOOKING_SUBCATEGORIES: Partial<Record<CategoryType, CategoryConfig>> = {
|
|
46
54
|
[CATEGORY_TYPES_NAMES.game]: {
|
|
47
55
|
label: "game",
|
|
48
|
-
icon: "
|
|
56
|
+
icon: <FaBowlingBall color="#0e8ce2" size={32} />,
|
|
49
57
|
},
|
|
50
58
|
[CATEGORY_TYPES_NAMES.fixedDuration]: {
|
|
51
59
|
label: "fixedDuration",
|
|
52
|
-
icon: "
|
|
60
|
+
icon: <FaCalendar color="#0e8ce2" size={32} />,
|
|
53
61
|
},
|
|
54
62
|
};
|
|
55
63
|
|
|
@@ -106,7 +114,7 @@ export function SelectCategoryModal({
|
|
|
106
114
|
<ModalTitle as="h5">{t("Design:selectCategory")}</ModalTitle>
|
|
107
115
|
|
|
108
116
|
<Button variant="danger" className="btn-sm rounded" onClick={onHide}>
|
|
109
|
-
<
|
|
117
|
+
<FaTimes size={20} />
|
|
110
118
|
</Button>
|
|
111
119
|
</ModalHeader>
|
|
112
120
|
|
|
@@ -133,11 +141,7 @@ export function SelectCategoryModal({
|
|
|
133
141
|
onClick={() => categorySelectHandler(categoryType)}
|
|
134
142
|
active={selectedCategory === categoryType}
|
|
135
143
|
>
|
|
136
|
-
{
|
|
137
|
-
<Icon type={icon} color="#0e8ce2" height="2rem" />
|
|
138
|
-
) : (
|
|
139
|
-
icon
|
|
140
|
-
)}
|
|
144
|
+
{icon}
|
|
141
145
|
<h6 className="text-dark mt-3">{t(label)}</h6>
|
|
142
146
|
</Button>
|
|
143
147
|
</Col>
|
|
@@ -160,7 +164,7 @@ export function SelectCategoryModal({
|
|
|
160
164
|
onClick={() => categorySelectHandler(categoryType)}
|
|
161
165
|
active={selectedCategory === categoryType}
|
|
162
166
|
>
|
|
163
|
-
|
|
167
|
+
{icon}
|
|
164
168
|
<h6 className="text-dark mt-3">{t(label)}</h6>
|
|
165
169
|
</Button>
|
|
166
170
|
</Col>
|
|
@@ -178,10 +182,11 @@ export function SelectCategoryModal({
|
|
|
178
182
|
}`}
|
|
179
183
|
onClick={() => setActiveCarouselIndex((prev) => (prev ? 0 : 1))}
|
|
180
184
|
>
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
+
{activeCarouselIndex ? (
|
|
186
|
+
<FaArrowLeft size={16} />
|
|
187
|
+
) : (
|
|
188
|
+
<FaArrowRight size={16} />
|
|
189
|
+
)}
|
|
185
190
|
</Button>
|
|
186
191
|
)}
|
|
187
192
|
</ModalBody>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import clsx from "clsx";
|
|
2
|
-
import {
|
|
2
|
+
import { FaPlus } from "react-icons/fa";
|
|
3
3
|
|
|
4
4
|
interface CreateProductSetItemProps {
|
|
5
5
|
onClick: () => void;
|
|
@@ -25,12 +25,7 @@ export function CreateProductSetItem({
|
|
|
25
25
|
onClick={onClick}
|
|
26
26
|
type="button"
|
|
27
27
|
>
|
|
28
|
-
<
|
|
29
|
-
type="plus"
|
|
30
|
-
height="1.25rem"
|
|
31
|
-
width="1.25rem"
|
|
32
|
-
className="rounded product-set-item-icon"
|
|
33
|
-
/>
|
|
28
|
+
<FaPlus size={20} className="rounded product-set-item-icon" />
|
|
34
29
|
<span>{title}</span>
|
|
35
30
|
</button>
|
|
36
31
|
);
|
|
@@ -7,7 +7,7 @@ import OverlayTrigger, {
|
|
|
7
7
|
OverlayTriggerType,
|
|
8
8
|
} from "react-bootstrap/OverlayTrigger";
|
|
9
9
|
import Popover from "react-bootstrap/Popover";
|
|
10
|
-
import {
|
|
10
|
+
import { FaPlus } from "react-icons/fa";
|
|
11
11
|
|
|
12
12
|
export type ProductSetPopoverProps = {
|
|
13
13
|
title?: string;
|
|
@@ -63,7 +63,7 @@ export const ProductSetPopover = forwardRef<
|
|
|
63
63
|
}
|
|
64
64
|
}}
|
|
65
65
|
>
|
|
66
|
-
<
|
|
66
|
+
<FaPlus size={12} />
|
|
67
67
|
</Button>
|
|
68
68
|
</OverlayTrigger>
|
|
69
69
|
</div>
|
|
@@ -39,15 +39,13 @@ import {
|
|
|
39
39
|
} from "react-hook-form";
|
|
40
40
|
import { useTranslation } from "react-i18next";
|
|
41
41
|
import { useImages } from "@licklist/plugins/dist/hooks/Media/useImages";
|
|
42
|
-
|
|
43
42
|
import {
|
|
44
43
|
Image,
|
|
45
44
|
IMAGE_TYPE_IMAGE,
|
|
46
45
|
} from "@licklist/core/dist/DataMapper/Media/ImageDataMapper";
|
|
47
|
-
|
|
46
|
+
import { FaClipboard } from "react-icons/fa";
|
|
48
47
|
import { FileUpload } from "../../file-upload";
|
|
49
48
|
import { BooleanSwitch, FormNumberInput } from "../../static";
|
|
50
|
-
import Icon from "../../static/Icon";
|
|
51
49
|
import { SelectItem } from "../../types/generic/SelectItem";
|
|
52
50
|
import { ProductSetLoadingContext } from "../form/context";
|
|
53
51
|
import {
|
|
@@ -728,8 +726,7 @@ export function ProductControl<T extends FormValues>({
|
|
|
728
726
|
variant="link"
|
|
729
727
|
className="d-flex align-items-center"
|
|
730
728
|
>
|
|
731
|
-
<
|
|
732
|
-
{t("copy")}
|
|
729
|
+
<FaClipboard size={16} className="mr-2" /> {t("copy")}
|
|
733
730
|
</Button>
|
|
734
731
|
)}
|
|
735
732
|
</div>
|
|
@@ -8,7 +8,7 @@ import { Form } from "react-bootstrap";
|
|
|
8
8
|
import InputGroup from "react-bootstrap/InputGroup";
|
|
9
9
|
import { Controller, Path, useFormContext } from "react-hook-form";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
|
-
import
|
|
11
|
+
import { FaSortNumericUpAlt } from "react-icons/fa";
|
|
12
12
|
import { SelectItem } from "../../../types/generic/SelectItem";
|
|
13
13
|
|
|
14
14
|
export interface ProductBookingManagementControlValues extends FormValues {
|
|
@@ -77,7 +77,7 @@ export function ProductBookingManagementControl<T extends FormValues>(
|
|
|
77
77
|
<InputGroup hasValidation>
|
|
78
78
|
<InputGroup.Prepend>
|
|
79
79
|
<InputGroup.Text>
|
|
80
|
-
<
|
|
80
|
+
<FaSortNumericUpAlt size={16} />
|
|
81
81
|
</InputGroup.Text>
|
|
82
82
|
</InputGroup.Prepend>
|
|
83
83
|
|
|
@@ -9,7 +9,7 @@ import Col from "react-bootstrap/Col";
|
|
|
9
9
|
import InputGroup from "react-bootstrap/InputGroup";
|
|
10
10
|
import { Controller, Path, useFormContext } from "react-hook-form";
|
|
11
11
|
import { useTranslation } from "react-i18next";
|
|
12
|
-
import
|
|
12
|
+
import { FaPoundSign } from "react-icons/fa";
|
|
13
13
|
|
|
14
14
|
export interface ProductDepositControlValues extends FormValues {
|
|
15
15
|
deposit: number;
|
|
@@ -41,7 +41,7 @@ export function ProductDepositControl<T extends FormValues>(
|
|
|
41
41
|
<InputGroup hasValidation>
|
|
42
42
|
<InputGroup.Prepend>
|
|
43
43
|
<InputGroup.Text>
|
|
44
|
-
<
|
|
44
|
+
<FaPoundSign size={10} className="p-0" />
|
|
45
45
|
</InputGroup.Text>
|
|
46
46
|
</InputGroup.Prepend>
|
|
47
47
|
|
|
@@ -6,7 +6,7 @@ import Col from "react-bootstrap/Col";
|
|
|
6
6
|
import InputGroup from "react-bootstrap/InputGroup";
|
|
7
7
|
import { Controller, Path, useFormContext } from "react-hook-form";
|
|
8
8
|
import { useTranslation } from "react-i18next";
|
|
9
|
-
import
|
|
9
|
+
import { FaPoundSign } from "react-icons/fa";
|
|
10
10
|
|
|
11
11
|
export interface ProductPriceControlValues extends FormValues {
|
|
12
12
|
price: number;
|
|
@@ -49,7 +49,7 @@ export function ProductPriceControl<T extends FormValues>({
|
|
|
49
49
|
<InputGroup hasValidation>
|
|
50
50
|
<InputGroup.Prepend>
|
|
51
51
|
<InputGroup.Text>
|
|
52
|
-
<
|
|
52
|
+
<FaPoundSign size={10} className="p-0" />
|
|
53
53
|
</InputGroup.Text>
|
|
54
54
|
</InputGroup.Prepend>
|
|
55
55
|
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
2
2
|
import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permission";
|
|
3
3
|
|
|
4
|
-
import { Icon } from "../../static";
|
|
5
|
-
|
|
6
4
|
export interface ReportCardProps extends HasPermissionProp {
|
|
7
5
|
name: string;
|
|
8
6
|
onPress: () => void;
|
|
9
7
|
className?: string;
|
|
10
|
-
iconType: string;
|
|
11
8
|
}
|
|
12
9
|
|
|
13
10
|
export function ReportCard({
|
|
@@ -15,7 +12,6 @@ export function ReportCard({
|
|
|
15
12
|
onPress,
|
|
16
13
|
className = "",
|
|
17
14
|
hasPermission = true,
|
|
18
|
-
iconType,
|
|
19
15
|
}: ReportCardProps) {
|
|
20
16
|
const reportCardClasses = `report-card ${className}`;
|
|
21
17
|
|
|
@@ -28,12 +24,6 @@ export function ReportCard({
|
|
|
28
24
|
>
|
|
29
25
|
<div className="report-card-link text-center">
|
|
30
26
|
<div className="d-flex justift-content-center flex-column">
|
|
31
|
-
<Icon
|
|
32
|
-
color="#0e8ce2"
|
|
33
|
-
className="mb-1"
|
|
34
|
-
type={iconType}
|
|
35
|
-
height="1.5rem"
|
|
36
|
-
/>
|
|
37
27
|
<h6>{name}</h6>
|
|
38
28
|
</div>
|
|
39
29
|
</div>
|
|
@@ -11,7 +11,7 @@ import { TIME_FORMAT } from "@licklist/core/dist/Config";
|
|
|
11
11
|
import * as Config from "@licklist/core/dist/Config";
|
|
12
12
|
import { formatDateStringForEvent } from "@licklist/plugins/dist/utils/formatDate";
|
|
13
13
|
import { getOrderSourceTitle } from "@licklist/plugins/dist/utils/sourceTitle";
|
|
14
|
-
import
|
|
14
|
+
import { FaUser } from "react-icons/fa";
|
|
15
15
|
|
|
16
16
|
export type ResultCardProps = {
|
|
17
17
|
className: string;
|
|
@@ -63,7 +63,7 @@ export const ResultCard = ({
|
|
|
63
63
|
<div className="card-content">
|
|
64
64
|
<div className="order-id">{id}</div>
|
|
65
65
|
<div className="order-people">
|
|
66
|
-
<
|
|
66
|
+
<FaUser size={10} className="p-0" />
|
|
67
67
|
{people}
|
|
68
68
|
</div>
|
|
69
69
|
<div className="order-description">
|