mautourco-components 0.2.36 → 0.2.37

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.
Files changed (240) hide show
  1. package/dist/components/molecules/ActionDropdown/ActionDropdown.d.ts +1 -1
  2. package/dist/components/molecules/ActionDropdown/ActionDropdown.js +4 -4
  3. package/dist/components/molecules/AddItemButton/AddItemButton.d.ts +1 -1
  4. package/dist/components/molecules/AddItemButton/AddItemButton.js +3 -3
  5. package/dist/components/molecules/BookingPax/BookingPax.d.ts +9 -6
  6. package/dist/components/molecules/BookingPax/BookingPax.js +2 -2
  7. package/dist/components/molecules/BookingPax/BookingPaxAccom.d.ts +1 -2
  8. package/dist/components/molecules/BookingPax/BookingPaxAccom.js +2 -2
  9. package/dist/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.d.ts +1 -1
  10. package/dist/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.js +2 -2
  11. package/dist/components/molecules/BookingPax/BookingPaxExcursion.d.ts +1 -2
  12. package/dist/components/molecules/BookingPax/BookingPaxExcursion.js +2 -2
  13. package/dist/components/molecules/BookingPax/BookingPaxHeader.d.ts +5 -5
  14. package/dist/components/molecules/BookingPax/BookingPaxHeader.js +2 -2
  15. package/dist/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.d.ts +1 -1
  16. package/dist/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.js +2 -2
  17. package/dist/components/molecules/BookingPax/BookingPaxRemarks.d.ts +1 -2
  18. package/dist/components/molecules/BookingPax/BookingPaxRemarks.js +4 -4
  19. package/dist/components/molecules/BookingPax/BookingPaxTransfer.d.ts +1 -2
  20. package/dist/components/molecules/BookingPax/BookingPaxTransfer.js +2 -2
  21. package/dist/components/molecules/BookingResume/BookingResume.d.ts +13 -8
  22. package/dist/components/molecules/BookingResume/BookingResume.js +2 -2
  23. package/dist/components/molecules/BookingResume/BookingResumeLayout/BookingResumeLayout.d.ts +1 -1
  24. package/dist/components/molecules/BookingResume/BookingResumeLayout/BookingResumeLayout.js +2 -2
  25. package/dist/components/molecules/BookingResume/ResumeAccom/ResumeAccom.d.ts +1 -2
  26. package/dist/components/molecules/BookingResume/ResumeAccom/ResumeAccom.js +2 -2
  27. package/dist/components/molecules/BookingResume/ResumeExcursion/ResumeExcursion.d.ts +1 -2
  28. package/dist/components/molecules/BookingResume/ResumeExcursion/ResumeExcursion.js +2 -2
  29. package/dist/components/molecules/BookingResume/ResumeOtherService.d.ts +1 -2
  30. package/dist/components/molecules/BookingResume/ResumeOtherService.js +2 -2
  31. package/dist/components/molecules/BookingResume/ResumeTransfer.d.ts +1 -2
  32. package/dist/components/molecules/BookingResume/ResumeTransfer.js +2 -2
  33. package/dist/components/molecules/Breadcrumbs/Breadcrumbs.d.ts +1 -2
  34. package/dist/components/molecules/Breadcrumbs/Breadcrumbs.js +2 -2
  35. package/dist/components/molecules/DateDisplay/DateDisplay.d.ts +1 -2
  36. package/dist/components/molecules/DateDisplay/DateDisplay.js +3 -3
  37. package/dist/components/molecules/DetailsInfo/DetailsAction.d.ts +1 -2
  38. package/dist/components/molecules/DetailsInfo/DetailsAction.js +2 -2
  39. package/dist/components/molecules/DetailsInfo/DetailsAgency/DetailsAgency.d.ts +1 -1
  40. package/dist/components/molecules/DetailsInfo/DetailsAgency/DetailsAgency.js +2 -2
  41. package/dist/components/molecules/DetailsInfo/DetailsClient/DetailsClient.d.ts +1 -2
  42. package/dist/components/molecules/DetailsInfo/DetailsClient/DetailsClient.js +2 -2
  43. package/dist/components/molecules/DetailsInfo/DetailsFile.d.ts +1 -2
  44. package/dist/components/molecules/DetailsInfo/DetailsFile.js +2 -2
  45. package/dist/components/molecules/DetailsInfo/DetailsInfo.d.ts +8 -4
  46. package/dist/components/molecules/DialogContentPolicy/CancellationLayout/CancellationLayout.d.ts +1 -1
  47. package/dist/components/molecules/DialogContentPolicy/CancellationLayout/CancellationLayout.js +2 -2
  48. package/dist/components/molecules/DialogContentPolicy/DialogCancellationAccom.d.ts +1 -1
  49. package/dist/components/molecules/DialogContentPolicy/DialogCancellationAccom.js +2 -2
  50. package/dist/components/molecules/DialogContentPolicy/DialogCancellationExcursion.d.ts +1 -1
  51. package/dist/components/molecules/DialogContentPolicy/DialogCancellationExcursion.js +2 -2
  52. package/dist/components/molecules/DialogContentPolicy/DialogCancellationList.d.ts +2 -3
  53. package/dist/components/molecules/DialogContentPolicy/DialogCancellationList.js +4 -4
  54. package/dist/components/molecules/DialogContentPolicy/DialogContentPolicy.d.ts +9 -6
  55. package/dist/components/molecules/DialogContentPolicy/DialogContentPolicy.js +2 -2
  56. package/dist/components/molecules/FromTo/FromTo.d.ts +1 -1
  57. package/dist/components/molecules/FromTo/FromTo.js +2 -2
  58. package/dist/components/molecules/GlobalAmenities/GlobalAmenities.d.ts +1 -2
  59. package/dist/components/molecules/GlobalAmenities/GlobalAmenities.js +2 -2
  60. package/dist/components/molecules/PaxChips/PaxChips.d.ts +1 -2
  61. package/dist/components/molecules/PaxChips/PaxChips.js +2 -2
  62. package/dist/components/molecules/PaxDisplay/PaxDisplay.d.ts +1 -1
  63. package/dist/components/molecules/PaxDisplay/PaxDisplay.js +2 -2
  64. package/dist/components/molecules/ServiceTitle/ServiceTitle.d.ts +1 -1
  65. package/dist/components/molecules/ServiceTitle/ServiceTitle.js +2 -2
  66. package/dist/components/molecules/StepperTimeline/StepperTimeline.d.ts +3 -2
  67. package/dist/components/molecules/StepperTimeline/StepperTimeline.js +2 -2
  68. package/dist/components/molecules/TableServiceItem/DetailsCol.d.ts +1 -1
  69. package/dist/components/molecules/TableServiceItem/DetailsCol.js +2 -2
  70. package/dist/components/molecules/TableServiceItem/ItemCol.d.ts +1 -1
  71. package/dist/components/molecules/TableServiceItem/ItemCol.js +2 -2
  72. package/dist/components/molecules/TableServiceItem/RowAccommodation.d.ts +2 -3
  73. package/dist/components/molecules/TableServiceItem/RowAccommodation.js +9 -6
  74. package/dist/components/molecules/TableServiceItem/RowExcursion.d.ts +3 -4
  75. package/dist/components/molecules/TableServiceItem/RowExcursion.js +5 -5
  76. package/dist/components/molecules/TableServiceItem/RowOtherServices.d.ts +3 -4
  77. package/dist/components/molecules/TableServiceItem/RowOtherServices.js +4 -4
  78. package/dist/components/molecules/TableServiceItem/RowTransfer.d.ts +3 -4
  79. package/dist/components/molecules/TableServiceItem/RowTransfer.js +4 -4
  80. package/dist/components/molecules/TableServiceItem/index.d.ts +4 -4
  81. package/dist/components/molecules/TextWithBorderBottom/TextWithBorderBottom.d.ts +1 -2
  82. package/dist/components/molecules/TextWithBorderBottom/TextWithBorderBottom.js +2 -2
  83. package/dist/components/molecules/TextWithIcon/TextWithIcon.d.ts +1 -1
  84. package/dist/components/molecules/TextWithIcon/TextWithIcon.js +2 -2
  85. package/dist/components/molecules/TimelineItem/ServiceAccommodation.d.ts +1 -2
  86. package/dist/components/molecules/TimelineItem/ServiceAccommodation.js +2 -2
  87. package/dist/components/molecules/TimelineItem/ServiceExcursion.d.ts +1 -2
  88. package/dist/components/molecules/TimelineItem/ServiceExcursion.js +2 -2
  89. package/dist/components/molecules/TimelineItem/ServiceTransfer.d.ts +1 -2
  90. package/dist/components/molecules/TimelineItem/ServiceTransfer.js +2 -2
  91. package/dist/components/molecules/TimelineItem/TimelineHeader.d.ts +1 -2
  92. package/dist/components/molecules/TimelineItem/TimelineHeader.js +2 -2
  93. package/dist/components/molecules/TimelineItem/TimelineItem.d.ts +6 -3
  94. package/dist/components/molecules/Toast/Toast.d.ts +1 -2
  95. package/dist/components/molecules/Toast/Toast.js +3 -3
  96. package/dist/components/molecules/TooltipDisplay/TooltipDisplay.d.ts +1 -1
  97. package/dist/components/molecules/TooltipDisplay/TooltipDisplay.js +2 -2
  98. package/dist/components/organisms/Booking/Booking.d.ts +8 -4
  99. package/dist/components/organisms/Booking/BookingDocket/BookingDocket.d.ts +1 -1
  100. package/dist/components/organisms/Booking/BookingDocket/BookingDocket.js +2 -2
  101. package/dist/components/organisms/Booking/BookingHeader.d.ts +1 -2
  102. package/dist/components/organisms/Booking/BookingHeader.js +2 -2
  103. package/dist/components/organisms/Booking/BookingPaxList.d.ts +1 -2
  104. package/dist/components/organisms/Booking/BookingPaxList.js +2 -2
  105. package/dist/components/organisms/Booking/BookingStep/BookingStep.d.ts +1 -2
  106. package/dist/components/organisms/Booking/BookingStep/BookingStep.js +2 -2
  107. package/dist/components/organisms/DialogBookingAddItem/AddItemNewService.d.ts +1 -1
  108. package/dist/components/organisms/DialogBookingAddItem/AddItemNewService.js +2 -2
  109. package/dist/components/organisms/DialogBookingAddItem/AddItemSelector.d.ts +1 -1
  110. package/dist/components/organisms/DialogBookingAddItem/AddItemSelector.js +3 -3
  111. package/dist/components/organisms/DialogBookingAddItem/DialogBookingAddItem.d.ts +1 -2
  112. package/dist/components/organisms/DialogBookingAddItem/DialogBookingAddItem.js +2 -2
  113. package/dist/components/organisms/DialogBookingConfirm/BookingCancellationPolicy.d.ts +1 -1
  114. package/dist/components/organisms/DialogBookingConfirm/BookingCancellationPolicy.js +2 -2
  115. package/dist/components/organisms/DialogBookingConfirm/BookingMailSent.d.ts +1 -2
  116. package/dist/components/organisms/DialogBookingConfirm/BookingMailSent.js +2 -2
  117. package/dist/components/organisms/DialogBookingConfirm/BookingReference.d.ts +1 -2
  118. package/dist/components/organisms/DialogBookingConfirm/BookingReference.js +2 -2
  119. package/dist/components/organisms/DialogBookingConfirm/BookingSuccess.d.ts +1 -2
  120. package/dist/components/organisms/DialogBookingConfirm/BookingSuccess.js +2 -2
  121. package/dist/components/organisms/DialogBookingConfirm/DialogBookingConfirm.d.ts +11 -7
  122. package/dist/components/organisms/DialogBookingConfirm/DialogBookingConfirm.js +2 -2
  123. package/dist/components/organisms/DialogCancelService/CancelBooking/CancelBooking.d.ts +1 -2
  124. package/dist/components/organisms/DialogCancelService/CancelBooking/CancelBooking.js +2 -2
  125. package/dist/components/organisms/DialogCancelService/CancelPolicy.d.ts +1 -2
  126. package/dist/components/organisms/DialogCancelService/CancelPolicy.js +2 -2
  127. package/dist/components/organisms/DialogCancelService/ConfirmDelete/ConfirmDelete.d.ts +1 -2
  128. package/dist/components/organisms/DialogCancelService/ConfirmDelete/ConfirmDelete.js +2 -2
  129. package/dist/components/organisms/DialogCancelService/DialogCancelService.d.ts +9 -7
  130. package/dist/components/organisms/DialogCancelService/DialogCancelService.js +2 -2
  131. package/dist/components/organisms/DialogCancelService/FromList.d.ts +1 -1
  132. package/dist/components/organisms/DialogCancelService/FromList.js +2 -2
  133. package/dist/components/organisms/DialogComparison/DialogComparison.d.ts +1 -1
  134. package/dist/components/organisms/DialogComparison/DialogComparison.js +2 -2
  135. package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirm.d.ts +8 -6
  136. package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirm.js +2 -2
  137. package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirmMultiple/DialogDeleteConfirmMultiple.d.ts +1 -2
  138. package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirmMultiple/DialogDeleteConfirmMultiple.js +2 -2
  139. package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirmWrapper.d.ts +1 -1
  140. package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirmWrapper.js +2 -2
  141. package/dist/components/organisms/DialogQuoteRename/DialogQuoteRename.d.ts +1 -1
  142. package/dist/components/organisms/DialogQuoteRename/DialogQuoteRename.js +2 -2
  143. package/dist/components/organisms/DialogSendingMail/DialogSendingMail.d.ts +7 -5
  144. package/dist/components/organisms/DialogSendingMail/DialogSendingMail.js +2 -2
  145. package/dist/components/organisms/DialogSendingMail/DialogSendingMailContent.d.ts +1 -2
  146. package/dist/components/organisms/DialogSendingMail/DialogSendingMailContent.js +2 -2
  147. package/dist/components/organisms/DialogSendingMail/DialogSendingMailMultiple/DialogSendingMailMultiple.d.ts +1 -2
  148. package/dist/components/organisms/DialogSendingMail/DialogSendingMailMultiple/DialogSendingMailMultiple.js +2 -2
  149. package/dist/components/organisms/TabServiceDetails/Accommodation.d.ts +1 -2
  150. package/dist/components/organisms/TabServiceDetails/Accommodation.js +2 -2
  151. package/dist/components/organisms/TabServiceDetails/DetailContentTransfer.d.ts +1 -2
  152. package/dist/components/organisms/TabServiceDetails/DetailContentTransfer.js +2 -2
  153. package/dist/components/organisms/TabServiceDetails/DetailsContentAccom.d.ts +14 -1
  154. package/dist/components/organisms/TabServiceDetails/DetailsContentAccom.js +2 -2
  155. package/dist/components/organisms/TabServiceDetails/Excursion.d.ts +1 -2
  156. package/dist/components/organisms/TabServiceDetails/Excursion.js +2 -2
  157. package/dist/components/organisms/TabServiceDetails/TabServiceDetails.d.ts +3 -3
  158. package/dist/components/organisms/TabServiceDetails/Transfer.d.ts +1 -2
  159. package/dist/components/organisms/TabServiceDetails/Transfer.js +2 -2
  160. package/dist/components/organisms/Table/Table.d.ts +1 -1
  161. package/dist/components/organisms/Table/Table.js +2 -2
  162. package/package.json +1 -1
  163. package/src/components/molecules/ActionDropdown/ActionDropdown.tsx +3 -6
  164. package/src/components/molecules/AddItemButton/AddItemButton.tsx +3 -2
  165. package/src/components/molecules/BookingPax/BookingPax.tsx +2 -2
  166. package/src/components/molecules/BookingPax/BookingPaxAccom.tsx +3 -3
  167. package/src/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.tsx +2 -2
  168. package/src/components/molecules/BookingPax/BookingPaxExcursion.tsx +3 -3
  169. package/src/components/molecules/BookingPax/BookingPaxHeader.tsx +2 -2
  170. package/src/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.tsx +2 -2
  171. package/src/components/molecules/BookingPax/BookingPaxRemarks.tsx +3 -2
  172. package/src/components/molecules/BookingPax/BookingPaxTransfer.tsx +2 -2
  173. package/src/components/molecules/BookingResume/BookingResume.tsx +2 -2
  174. package/src/components/molecules/BookingResume/BookingResumeLayout/BookingResumeLayout.tsx +2 -2
  175. package/src/components/molecules/BookingResume/ResumeAccom/ResumeAccom.tsx +2 -3
  176. package/src/components/molecules/BookingResume/ResumeExcursion/ResumeExcursion.tsx +2 -3
  177. package/src/components/molecules/BookingResume/ResumeOtherService.tsx +2 -3
  178. package/src/components/molecules/BookingResume/ResumeTransfer.tsx +2 -3
  179. package/src/components/molecules/Breadcrumbs/Breadcrumbs.tsx +2 -3
  180. package/src/components/molecules/DateDisplay/DateDisplay.tsx +11 -10
  181. package/src/components/molecules/DetailsInfo/DetailsAction.tsx +2 -3
  182. package/src/components/molecules/DetailsInfo/DetailsAgency/DetailsAgency.tsx +2 -2
  183. package/src/components/molecules/DetailsInfo/DetailsClient/DetailsClient.tsx +2 -3
  184. package/src/components/molecules/DetailsInfo/DetailsFile.tsx +2 -3
  185. package/src/components/molecules/DialogContentPolicy/CancellationLayout/CancellationLayout.tsx +2 -2
  186. package/src/components/molecules/DialogContentPolicy/DialogCancellationAccom.tsx +2 -4
  187. package/src/components/molecules/DialogContentPolicy/DialogCancellationExcursion.tsx +2 -4
  188. package/src/components/molecules/DialogContentPolicy/DialogCancellationList.tsx +4 -5
  189. package/src/components/molecules/DialogContentPolicy/DialogContentPolicy.tsx +2 -2
  190. package/src/components/molecules/FromTo/FromTo.tsx +2 -2
  191. package/src/components/molecules/GlobalAmenities/GlobalAmenities.tsx +2 -3
  192. package/src/components/molecules/PaxChips/PaxChips.tsx +2 -3
  193. package/src/components/molecules/PaxDisplay/PaxDisplay.tsx +2 -2
  194. package/src/components/molecules/ServiceTitle/ServiceTitle.tsx +2 -2
  195. package/src/components/molecules/StepperTimeline/StepperTimeline.tsx +2 -2
  196. package/src/components/molecules/TableServiceItem/DetailsCol.tsx +2 -2
  197. package/src/components/molecules/TableServiceItem/ItemCol.tsx +2 -2
  198. package/src/components/molecules/TableServiceItem/RowAccommodation.tsx +17 -7
  199. package/src/components/molecules/TableServiceItem/RowExcursion.tsx +12 -6
  200. package/src/components/molecules/TableServiceItem/RowOtherServices.tsx +4 -5
  201. package/src/components/molecules/TableServiceItem/RowTransfer.tsx +4 -7
  202. package/src/components/molecules/TextWithBorderBottom/TextWithBorderBottom.tsx +2 -3
  203. package/src/components/molecules/TextWithIcon/TextWithIcon.tsx +2 -2
  204. package/src/components/molecules/TimelineItem/ServiceAccommodation.tsx +2 -3
  205. package/src/components/molecules/TimelineItem/ServiceExcursion.tsx +2 -3
  206. package/src/components/molecules/TimelineItem/ServiceTransfer.tsx +2 -3
  207. package/src/components/molecules/TimelineItem/TimelineHeader.tsx +2 -3
  208. package/src/components/molecules/Toast/Toast.tsx +9 -9
  209. package/src/components/molecules/TooltipDisplay/TooltipDisplay.tsx +2 -2
  210. package/src/components/organisms/Booking/BookingDocket/BookingDocket.tsx +2 -2
  211. package/src/components/organisms/Booking/BookingHeader.tsx +2 -3
  212. package/src/components/organisms/Booking/BookingPaxList.tsx +3 -3
  213. package/src/components/organisms/Booking/BookingStep/BookingStep.tsx +3 -3
  214. package/src/components/organisms/DialogBookingAddItem/AddItemNewService.tsx +2 -2
  215. package/src/components/organisms/DialogBookingAddItem/AddItemSelector.tsx +3 -2
  216. package/src/components/organisms/DialogBookingAddItem/DialogBookingAddItem.tsx +3 -3
  217. package/src/components/organisms/DialogBookingConfirm/BookingCancellationPolicy.tsx +2 -2
  218. package/src/components/organisms/DialogBookingConfirm/BookingMailSent.tsx +2 -3
  219. package/src/components/organisms/DialogBookingConfirm/BookingReference.tsx +3 -3
  220. package/src/components/organisms/DialogBookingConfirm/BookingSuccess.tsx +2 -3
  221. package/src/components/organisms/DialogBookingConfirm/DialogBookingConfirm.tsx +2 -2
  222. package/src/components/organisms/DialogCancelService/CancelBooking/CancelBooking.tsx +3 -3
  223. package/src/components/organisms/DialogCancelService/CancelPolicy.tsx +2 -3
  224. package/src/components/organisms/DialogCancelService/ConfirmDelete/ConfirmDelete.tsx +2 -3
  225. package/src/components/organisms/DialogCancelService/DialogCancelService.tsx +2 -2
  226. package/src/components/organisms/DialogCancelService/FromList.tsx +3 -3
  227. package/src/components/organisms/DialogComparison/DialogComparison.tsx +2 -2
  228. package/src/components/organisms/DialogDeleteConfirm/DialogDeleteConfirm.tsx +2 -2
  229. package/src/components/organisms/DialogDeleteConfirm/DialogDeleteConfirmMultiple/DialogDeleteConfirmMultiple.tsx +3 -5
  230. package/src/components/organisms/DialogDeleteConfirm/DialogDeleteConfirmWrapper.tsx +2 -2
  231. package/src/components/organisms/DialogQuoteRename/DialogQuoteRename.tsx +2 -2
  232. package/src/components/organisms/DialogSendingMail/DialogSendingMail.tsx +2 -2
  233. package/src/components/organisms/DialogSendingMail/DialogSendingMailContent.tsx +3 -5
  234. package/src/components/organisms/DialogSendingMail/DialogSendingMailMultiple/DialogSendingMailMultiple.tsx +3 -5
  235. package/src/components/organisms/TabServiceDetails/Accommodation.tsx +2 -3
  236. package/src/components/organisms/TabServiceDetails/DetailContentTransfer.tsx +2 -3
  237. package/src/components/organisms/TabServiceDetails/DetailsContentAccom.tsx +3 -3
  238. package/src/components/organisms/TabServiceDetails/Excursion.tsx +2 -3
  239. package/src/components/organisms/TabServiceDetails/Transfer.tsx +2 -3
  240. package/src/components/organisms/Table/Table.tsx +2 -2
@@ -42,7 +42,7 @@ export interface TextWithIconProps {
42
42
  * @param TextWithIconProps
43
43
  * @returns
44
44
  */
45
- const TextWithIcon: React.FC<TextWithIconProps> = (props) => {
45
+ function TextWithIcon(props: TextWithIconProps) {
46
46
  const {
47
47
  icon,
48
48
  children,
@@ -76,6 +76,6 @@ const TextWithIcon: React.FC<TextWithIconProps> = (props) => {
76
76
  </Text>
77
77
  </div>
78
78
  );
79
- };
79
+ }
80
80
 
81
81
  export default TextWithIcon;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { Text } from '../../atoms/Typography/Typography';
3
2
  import { DateDisplay } from '../DateDisplay/DateDisplay';
4
3
  import { DetailsCol, DetailsColData } from '../TableServiceItem/DetailsCol';
@@ -11,7 +10,7 @@ export interface ServiceAccommodationProps {
11
10
  isOnRequest?: boolean;
12
11
  }
13
12
 
14
- export const ServiceAccommodation: React.FC<ServiceAccommodationProps> = (props) => {
13
+ export function ServiceAccommodation(props: ServiceAccommodationProps) {
15
14
  const { hotelName, details, dates, isOnRequest } = props;
16
15
 
17
16
  return (
@@ -26,4 +25,4 @@ export const ServiceAccommodation: React.FC<ServiceAccommodationProps> = (props)
26
25
  </div>
27
26
  </div>
28
27
  );
29
- };
28
+ }
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { Text } from '../../atoms/Typography/Typography';
3
2
  import { DateDisplay } from '../DateDisplay/DateDisplay';
4
3
  import { DetailsCol, DetailsColData } from '../TableServiceItem/DetailsCol';
@@ -10,7 +9,7 @@ export interface ServiceExcursionProps {
10
9
  date: string;
11
10
  }
12
11
 
13
- export const ServiceExcursion: React.FC<ServiceExcursionProps> = (props) => {
12
+ export function ServiceExcursion(props: ServiceExcursionProps) {
14
13
  const { name, details, date } = props;
15
14
 
16
15
  return (
@@ -25,4 +24,4 @@ export const ServiceExcursion: React.FC<ServiceExcursionProps> = (props) => {
25
24
  </div>
26
25
  </div>
27
26
  );
28
- };
27
+ }
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import FromTo from '../FromTo/FromTo';
3
2
  import { DetailsCol, DetailsColData } from '../TableServiceItem/DetailsCol';
4
3
  import { TimelineHeader } from './TimelineHeader';
@@ -12,7 +11,7 @@ export interface ServiceTransferProps {
12
11
  details: DetailsColData[];
13
12
  }
14
13
 
15
- export const ServiceTransfer: React.FC<ServiceTransferProps> = (props) => {
14
+ export function ServiceTransfer(props: ServiceTransferProps) {
16
15
  const { transferType, location, details } = props;
17
16
 
18
17
  return (
@@ -22,4 +21,4 @@ export const ServiceTransfer: React.FC<ServiceTransferProps> = (props) => {
22
21
  <DetailsCol data={details} className="gap-y-2" />
23
22
  </div>
24
23
  );
25
- };
24
+ }
@@ -1,5 +1,4 @@
1
1
  import { cn } from '@/src/lib/utils';
2
- import React from 'react';
3
2
  import Chip from '../../atoms/Chip/Chip';
4
3
  import Icon, { IconName } from '../../atoms/Icon/Icon';
5
4
  import { Text } from '../../atoms/Typography/Typography';
@@ -12,7 +11,7 @@ export interface TimelineHeaderProps {
12
11
  isOnRequest?: boolean;
13
12
  }
14
13
 
15
- export const TimelineHeader: React.FC<TimelineHeaderProps> = (props) => {
14
+ export function TimelineHeader(props: TimelineHeaderProps) {
16
15
  const { icon = 'car', title, extraText, isOnRequest = false } = props;
17
16
  return (
18
17
  <div className={cn('timeline-header', isOnRequest && 'timeline-header--request')}>
@@ -38,4 +37,4 @@ export const TimelineHeader: React.FC<TimelineHeaderProps> = (props) => {
38
37
  </div>
39
38
  </div>
40
39
  );
41
- };
40
+ }
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import '../../../styles/components/molecule/toast.css';
3
2
  import Icon from '../../atoms/Icon/Icon';
4
3
  import { IconName } from '../../atoms/Icon/icons/registry';
@@ -28,13 +27,14 @@ export interface ToastProps {
28
27
  * @param ToastProps
29
28
  * @returns
30
29
  */
31
- const Toast: React.FC<ToastProps> = ({
32
- text,
33
- type = 'informational',
34
- className = '',
35
- iconName = 'badge-alert',
36
- showIcon = true,
37
- }) => {
30
+ function Toast(props: ToastProps) {
31
+ const {
32
+ text,
33
+ type = 'informational',
34
+ className = '',
35
+ iconName = 'badge-alert',
36
+ showIcon = true,
37
+ } = props;
38
38
  return (
39
39
  <div className={`toast toast--${type} ${className}`.trim()}>
40
40
  <div className="toast__container">
@@ -49,6 +49,6 @@ const Toast: React.FC<ToastProps> = ({
49
49
  </div>
50
50
  </div>
51
51
  );
52
- };
52
+ }
53
53
 
54
54
  export default Toast;
@@ -17,7 +17,7 @@ export interface TooltipDisplayProps {
17
17
  maxWidth?: `${number}px`;
18
18
  }
19
19
 
20
- export const TooltipDisplay: React.FC<TooltipDisplayProps> = (props) => {
20
+ export function TooltipDisplay(props: TooltipDisplayProps) {
21
21
  const { children, content, side = 'right', maxWidth = '300px' } = props;
22
22
  return (
23
23
  <Tooltip>
@@ -31,4 +31,4 @@ export const TooltipDisplay: React.FC<TooltipDisplayProps> = (props) => {
31
31
  </TooltipContent>
32
32
  </Tooltip>
33
33
  );
34
- };
34
+ }
@@ -31,7 +31,7 @@ export interface BookingDocketProps {
31
31
  resumes: BookingDocketItem[];
32
32
  }
33
33
 
34
- export const BookingDocket: React.FC<BookingDocketProps> = (props) => {
34
+ export function BookingDocket(props: BookingDocketProps) {
35
35
  const { dates, resumes } = props;
36
36
  const [isBookingOpen, setIsBookingOpen] = useState(false);
37
37
  const contentRef = useRef<HTMLDivElement>(null);
@@ -162,4 +162,4 @@ export const BookingDocket: React.FC<BookingDocketProps> = (props) => {
162
162
  </div>
163
163
  </LazyMotion>
164
164
  );
165
- };
165
+ }
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { Heading, Text } from '../../atoms/Typography/Typography';
3
2
 
4
3
  export interface BookingHeaderProps {
@@ -8,7 +7,7 @@ export interface BookingHeaderProps {
8
7
  isBooking?: boolean;
9
8
  }
10
9
 
11
- export const BookingHeader: React.FC<BookingHeaderProps> = (props) => {
10
+ export function BookingHeader(props: BookingHeaderProps) {
12
11
  const { fileNumber, reference, isBooking, location } = props;
13
12
  return (
14
13
  <div className="space-y-2">
@@ -21,4 +20,4 @@ export const BookingHeader: React.FC<BookingHeaderProps> = (props) => {
21
20
  </Text>
22
21
  </div>
23
22
  );
24
- };
23
+ }
@@ -1,4 +1,4 @@
1
- import React, { useCallback, useEffect, useState } from 'react';
1
+ import { useCallback, useEffect, useState } from 'react';
2
2
  import {
3
3
  BookingPax,
4
4
  BookingPaxAccomProps,
@@ -124,7 +124,7 @@ const isTransferData = (
124
124
  * @param props - The props for the BookingPaxList component.
125
125
  * @returns The BookingPaxList component.
126
126
  */
127
- export const BookingPaxList: React.FC<BookingPaxProps> = (props) => {
127
+ export function BookingPaxList(props: BookingPaxProps) {
128
128
  const {
129
129
  data,
130
130
  isSubmitted,
@@ -285,4 +285,4 @@ export const BookingPaxList: React.FC<BookingPaxProps> = (props) => {
285
285
  })}
286
286
  </BookingPax>
287
287
  );
288
- };
288
+ }
@@ -3,7 +3,7 @@ import {
3
3
  StepperTimeline,
4
4
  StepperTimelineItem,
5
5
  } from '@/src/components/molecules/StepperTimeline/StepperTimeline';
6
- import React, { useEffect, useState } from 'react';
6
+ import { useEffect, useState } from 'react';
7
7
  import './BookingStep.css';
8
8
 
9
9
  export interface BookingStepProps {
@@ -15,7 +15,7 @@ export interface BookingStepProps {
15
15
  onNextClick?: (step: StepperTimelineItem, index: number) => void;
16
16
  }
17
17
 
18
- export const BookingStep: React.FC<BookingStepProps> = (props) => {
18
+ export function BookingStep(props: BookingStepProps) {
19
19
  const { steps, className, nextDisabled, currentStep, onStepChange, onNextClick } =
20
20
  props;
21
21
 
@@ -54,4 +54,4 @@ export const BookingStep: React.FC<BookingStepProps> = (props) => {
54
54
  </Button>
55
55
  </div>
56
56
  );
57
- };
57
+ }
@@ -24,7 +24,7 @@ export interface AddItemNewServiceProps {
24
24
  onBack: () => void;
25
25
  }
26
26
 
27
- export const AddItemNewService: React.FC<AddItemNewServiceProps> = (props) => {
27
+ export function AddItemNewService(props: AddItemNewServiceProps) {
28
28
  const { date, options, clients, onServiceChange, onNext, onBack } = props;
29
29
  const [service, setService] = useState<ServiceType>('accommodation');
30
30
  const [selectedClients, setSelectedClients] = useState<BookingPaxClientInfo[]>([]);
@@ -113,4 +113,4 @@ export const AddItemNewService: React.FC<AddItemNewServiceProps> = (props) => {
113
113
  </div>
114
114
  </div>
115
115
  );
116
- };
116
+ }
@@ -10,7 +10,8 @@ export interface AddItemSelectorProps {
10
10
  onAddItem?: (type: AddItemType) => void;
11
11
  }
12
12
 
13
- export const AddItemSelector: React.FC<AddItemSelectorProps> = ({ onAddItem }) => {
13
+ export function AddItemSelector(props: AddItemSelectorProps) {
14
+ const { onAddItem } = props;
14
15
  return (
15
16
  <div className="space-y-9">
16
17
  <Text size="sm" variant="medium">
@@ -40,4 +41,4 @@ export const AddItemSelector: React.FC<AddItemSelectorProps> = ({ onAddItem }) =
40
41
  </Text>
41
42
  </div>
42
43
  );
43
- };
44
+ }
@@ -1,6 +1,6 @@
1
1
  import { AnimatePresence, domAnimation, LazyMotion } from 'motion/react';
2
2
  import * as motion from 'motion/react-m';
3
- import React, { useLayoutEffect, useRef, useState } from 'react';
3
+ import { useLayoutEffect, useRef, useState } from 'react';
4
4
  import { BookingPaxClientInfo } from '../../molecules/BookingPax';
5
5
  import { ServiceOption, ServiceType } from '../../molecules/ServiceSelector';
6
6
  import { DEFAULT_SERVICE_SELECTOR_OPTIONS } from '../../molecules/ServiceSelector/ServiceSelector';
@@ -20,7 +20,7 @@ export interface DialogBookingAddItemProps {
20
20
  onBackToSelector?: () => void;
21
21
  }
22
22
 
23
- export const DialogBookingAddItem: React.FC<DialogBookingAddItemProps> = (props) => {
23
+ export function DialogBookingAddItem(props: DialogBookingAddItemProps) {
24
24
  const {
25
25
  open,
26
26
  serviceDate = [],
@@ -117,4 +117,4 @@ export const DialogBookingAddItem: React.FC<DialogBookingAddItemProps> = (props)
117
117
  </LazyMotion>
118
118
  </Dialog>
119
119
  );
120
- };
120
+ }
@@ -30,7 +30,7 @@ export interface BookingCancellationPolicyProps {
30
30
  * @param props - The props for the BookingCancellationPolicy component.
31
31
  * @returns The BookingCancellationPolicy component.
32
32
  */
33
- export const BookingCancellationPolicy = (props: BookingCancellationPolicyProps) => {
33
+ export function BookingCancellationPolicy(props: BookingCancellationPolicyProps) {
34
34
  const { open, setOpen, cancellations } = props;
35
35
  return (
36
36
  <DialogBookingConfirm
@@ -41,4 +41,4 @@ export const BookingCancellationPolicy = (props: BookingCancellationPolicyProps)
41
41
  <DialogContentPolicy.List cancellations={cancellations} />
42
42
  </DialogBookingConfirm>
43
43
  );
44
- };
44
+ }
@@ -1,5 +1,4 @@
1
1
  import { Button, Heading } from '@/src';
2
- import React from 'react';
3
2
  import { DialogBookingConfirm } from './DialogBookingConfirm';
4
3
 
5
4
  export interface BookingMailSentProps {
@@ -30,7 +29,7 @@ export interface BookingMailSentProps {
30
29
  * @param props - The props for the BookingMailSent component.
31
30
  * @returns
32
31
  */
33
- export const BookingMailSent: React.FC<BookingMailSentProps> = (props) => {
32
+ export function BookingMailSent(props: BookingMailSentProps) {
34
33
  const { open, setOpen, onNext } = props;
35
34
  return (
36
35
  <DialogBookingConfirm open={open} setOpen={setOpen} className="!max-w-[800px]">
@@ -53,4 +52,4 @@ export const BookingMailSent: React.FC<BookingMailSentProps> = (props) => {
53
52
  </div>
54
53
  </DialogBookingConfirm>
55
54
  );
56
- };
55
+ }
@@ -1,4 +1,4 @@
1
- import React, { useState } from 'react';
1
+ import { useState } from 'react';
2
2
  import Button from '../../atoms/Button/Button';
3
3
  import Input from '../../atoms/Inputs/Input/Input';
4
4
  import { Text } from '../../atoms/Typography/Typography';
@@ -38,7 +38,7 @@ export interface BookingReferenceProps {
38
38
  * @param props - The props for the BookingReference component.
39
39
  * @returns The BookingReference component.
40
40
  */
41
- export const BookingReference: React.FC<BookingReferenceProps> = (props) => {
41
+ export function BookingReference(props: BookingReferenceProps) {
42
42
  const { open, setOpen, onCancel, onConfirm } = props;
43
43
  const [reference, setReference] = useState('');
44
44
  return (
@@ -71,4 +71,4 @@ export const BookingReference: React.FC<BookingReferenceProps> = (props) => {
71
71
  </div>
72
72
  </DialogBookingConfirm>
73
73
  );
74
- };
74
+ }
@@ -1,5 +1,4 @@
1
1
  import { Button, Heading, Text } from '@/src';
2
- import React from 'react';
3
2
  import { DialogBookingConfirm } from './DialogBookingConfirm';
4
3
 
5
4
  export interface BookingSuccessProps {
@@ -36,7 +35,7 @@ export interface BookingSuccessProps {
36
35
  * @param props - The props for the BookingSuccess component.
37
36
  * @returns The BookingSuccess component.
38
37
  */
39
- export const BookingSuccess: React.FC<BookingSuccessProps> = (props) => {
38
+ export function BookingSuccess(props: BookingSuccessProps) {
40
39
  const { open, bookingName, setOpen, onNext } = props;
41
40
  return (
42
41
  <DialogBookingConfirm open={open} setOpen={setOpen} className="!max-w-[800px]">
@@ -64,4 +63,4 @@ export const BookingSuccess: React.FC<BookingSuccessProps> = (props) => {
64
63
  </div>
65
64
  </DialogBookingConfirm>
66
65
  );
67
- };
66
+ }
@@ -49,7 +49,7 @@ interface DialogBookingConfirmProps {
49
49
  * @param props - The props for the DialogBookingConfirm component.
50
50
  * @returns The DialogBookingConfirm component.
51
51
  */
52
- export const DialogBookingConfirm = (props: DialogBookingConfirmProps) => {
52
+ export function DialogBookingConfirm(props: DialogBookingConfirmProps) {
53
53
  const {
54
54
  open,
55
55
  title,
@@ -70,7 +70,7 @@ export const DialogBookingConfirm = (props: DialogBookingConfirmProps) => {
70
70
  {children}
71
71
  </Dialog>
72
72
  );
73
- };
73
+ }
74
74
 
75
75
  DialogBookingConfirm.Reference = BookingReference;
76
76
  DialogBookingConfirm.CancellationPolicy = BookingCancellationPolicy;
@@ -7,7 +7,7 @@ import {
7
7
  CancellationsList,
8
8
  } from '@/src/components/molecules/DialogContentPolicy/DialogCancellationList';
9
9
  import { PaxChips, PaxCount } from '@/src/components/molecules/PaxChips/PaxChips';
10
- import React, { useState } from 'react';
10
+ import { useState } from 'react';
11
11
  import './CancelBooking.css';
12
12
 
13
13
  export interface CancelBookingProps {
@@ -22,7 +22,7 @@ export interface CancelBookingProps {
22
22
  onSubmit: () => void;
23
23
  }
24
24
 
25
- export const CancelBooking: React.FC<CancelBookingProps> = (props) => {
25
+ export function CancelBooking(props: CancelBookingProps) {
26
26
  const { bookingNo, cancellationPolicies, pax, bookingDetails, onSubmit } = props;
27
27
  const [accepted, setAccepted] = useState(false);
28
28
 
@@ -95,4 +95,4 @@ export const CancelBooking: React.FC<CancelBookingProps> = (props) => {
95
95
  </div>
96
96
  </div>
97
97
  );
98
- };
98
+ }
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import Button from '../../atoms/Button/Button';
3
2
  import { Text } from '../../atoms/Typography/Typography';
4
3
  import {
@@ -38,7 +37,7 @@ export interface CancelPolicyProps {
38
37
  onProceedToPayment?: () => void;
39
38
  }
40
39
 
41
- export const CancelPolicy: React.FC<CancelPolicyProps> = (props) => {
40
+ export function CancelPolicy(props: CancelPolicyProps) {
42
41
  const { cancellations, isPolicyTransgressed, isProcessing, onProceedToPayment } = props;
43
42
  return (
44
43
  <div>
@@ -65,4 +64,4 @@ export const CancelPolicy: React.FC<CancelPolicyProps> = (props) => {
65
64
  </div>
66
65
  </div>
67
66
  );
68
- };
67
+ }
@@ -3,7 +3,6 @@ import { IconName } from '@/src/components/atoms/Icon/Icon';
3
3
  import FromTo from '@/src/components/molecules/FromTo/FromTo';
4
4
  import TextWithIcon from '@/src/components/molecules/TextWithIcon/TextWithIcon';
5
5
  import { ServiceType } from '@/src/types/table';
6
- import React from 'react';
7
6
  import { Text } from '../../../atoms/Typography/Typography';
8
7
  import './ConfirmDelete.css';
9
8
 
@@ -32,7 +31,7 @@ const mappedServiceName: Record<ConfirmDeleteProps['serviceType'], string> = {
32
31
  [ServiceType.OTHER_SERVICE]: 'Other Service',
33
32
  };
34
33
 
35
- export const ConfirmDelete: React.FC<ConfirmDeleteProps> = (props) => {
34
+ export function ConfirmDelete(props: ConfirmDeleteProps) {
36
35
  const { serviceType, serviceName, transferData, onCancel, onDelete } = props;
37
36
  return (
38
37
  <div className="confirm-delete">
@@ -64,4 +63,4 @@ export const ConfirmDelete: React.FC<ConfirmDeleteProps> = (props) => {
64
63
  </div>
65
64
  </div>
66
65
  );
67
- };
66
+ }
@@ -13,7 +13,7 @@ export interface DialogCancelServiceProps {
13
13
  setOpen: (open: boolean) => void;
14
14
  }
15
15
 
16
- export const DialogCancelService = (props: DialogCancelServiceProps) => {
16
+ export function DialogCancelService(props: DialogCancelServiceProps) {
17
17
  const { open, children, title, className, setOpen } = props;
18
18
  return (
19
19
  <DialogBookingConfirm
@@ -24,7 +24,7 @@ export const DialogCancelService = (props: DialogCancelServiceProps) => {
24
24
  {children}
25
25
  </DialogBookingConfirm>
26
26
  );
27
- };
27
+ }
28
28
 
29
29
  DialogCancelService.FromList = FromList;
30
30
  DialogCancelService.Confirm = ConfirmDelete;
@@ -13,9 +13,9 @@ export interface FromListProps<T extends TableRowData<T> = DetailResumeItem> {
13
13
  onSaveAndUpdate?: () => void;
14
14
  }
15
15
 
16
- export const FromList = <T extends TableRowData<T> = DetailResumeItem>(
16
+ export function FromList<T extends TableRowData<T> = DetailResumeItem>(
17
17
  props: FromListProps<T>
18
- ) => {
18
+ ) {
19
19
  const { data, columns, totalRows, onRemove, onCancel, onSaveAndUpdate } = props;
20
20
 
21
21
  // When using default columns, we need to ensure T is compatible with DetailResumeItem
@@ -47,4 +47,4 @@ export const FromList = <T extends TableRowData<T> = DetailResumeItem>(
47
47
  </div>
48
48
  </div>
49
49
  );
50
- };
50
+ }
@@ -62,7 +62,7 @@ export const isComparisonOtherService = (
62
62
  return data.Type === ServiceType.OTHER_SERVICE;
63
63
  };
64
64
 
65
- export const DialogComparison = (props: DialogComparisonProps) => {
65
+ export function DialogComparison(props: DialogComparisonProps) {
66
66
  const { open, data, columns, setOpen, onBookNow } = props;
67
67
  const [selectedValues, setSelectedValues] = useState<string[]>([]);
68
68
  const [filteredData, setFilteredData] = useState<MultiComparisonData[]>(data);
@@ -154,4 +154,4 @@ export const DialogComparison = (props: DialogComparisonProps) => {
154
154
  </div>
155
155
  </DialogBookingConfirm>
156
156
  );
157
- };
157
+ }
@@ -20,7 +20,7 @@ const DialogDeleteConfirmText = (props: { children: React.ReactNode }) => {
20
20
  );
21
21
  };
22
22
 
23
- export const DialogDeleteConfirm = (props: DialogDeleteConfirmProps) => {
23
+ export function DialogDeleteConfirm(props: DialogDeleteConfirmProps) {
24
24
  const { open, title, children, setOpen } = props;
25
25
  return (
26
26
  <DialogBookingConfirm
@@ -32,7 +32,7 @@ export const DialogDeleteConfirm = (props: DialogDeleteConfirmProps) => {
32
32
  {children}
33
33
  </DialogBookingConfirm>
34
34
  );
35
- };
35
+ }
36
36
 
37
37
  DialogDeleteConfirm.Text = DialogDeleteConfirmText;
38
38
  DialogDeleteConfirm.Wrapper = DialogDeleteConfirmWrapper;
@@ -1,5 +1,5 @@
1
1
  import Toast from '@/src/components/molecules/Toast';
2
- import React, { useEffect, useState } from 'react';
2
+ import { useEffect, useState } from 'react';
3
3
  import Checkbox from '../../../atoms/Checkbox/Checkbox';
4
4
  import { DialogDeleteConfirm } from '../DialogDeleteConfirm';
5
5
  import './DialogDeleteConfirmMultiple.css';
@@ -15,9 +15,7 @@ export interface DialogDeleteConfirmMultipleProps {
15
15
  quotes: AvailableQuote[];
16
16
  }
17
17
 
18
- export const DialogDeleteConfirmMultiple: React.FC<DialogDeleteConfirmMultipleProps> = (
19
- props
20
- ) => {
18
+ export function DialogDeleteConfirmMultiple(props: DialogDeleteConfirmMultipleProps) {
21
19
  const { quotes, onCancel, onDelete } = props;
22
20
 
23
21
  const [selectedQuotes, setSelectedQuotes] = useState<string[]>([]);
@@ -81,4 +79,4 @@ export const DialogDeleteConfirmMultiple: React.FC<DialogDeleteConfirmMultiplePr
81
79
  </div>
82
80
  </DialogDeleteConfirm.Wrapper>
83
81
  );
84
- };
82
+ }
@@ -9,7 +9,7 @@ export interface DialogDeleteConfirmWrapperProps {
9
9
  children: React.ReactNode;
10
10
  }
11
11
 
12
- export const DialogDeleteConfirmWrapper = (props: DialogDeleteConfirmWrapperProps) => {
12
+ export function DialogDeleteConfirmWrapper(props: DialogDeleteConfirmWrapperProps) {
13
13
  const {
14
14
  onCancel,
15
15
  cancelText = 'Cancel',
@@ -31,4 +31,4 @@ export const DialogDeleteConfirmWrapper = (props: DialogDeleteConfirmWrapperProp
31
31
  </div>
32
32
  </div>
33
33
  );
34
- };
34
+ }
@@ -11,7 +11,7 @@ export interface DialogQuoteRenameProps {
11
11
  onSubmit: (quoteName: string) => void;
12
12
  }
13
13
 
14
- export const DialogQuoteRename = (props: DialogQuoteRenameProps) => {
14
+ export function DialogQuoteRename(props: DialogQuoteRenameProps) {
15
15
  const { open, setOpen, quoteName, onSubmit } = props;
16
16
  const [value, setValue] = useState(quoteName);
17
17
 
@@ -45,4 +45,4 @@ export const DialogQuoteRename = (props: DialogQuoteRenameProps) => {
45
45
  </div>
46
46
  </DialogBookingConfirm>
47
47
  );
48
- };
48
+ }
@@ -10,7 +10,7 @@ export interface DialogSendingMailProps {
10
10
  type?: 'booking' | 'quotation';
11
11
  }
12
12
 
13
- export const DialogSendingMail = (props: DialogSendingMailProps) => {
13
+ export function DialogSendingMail(props: DialogSendingMailProps) {
14
14
  const { open, setOpen, children, type = 'booking' } = props;
15
15
 
16
16
  return (
@@ -23,7 +23,7 @@ export const DialogSendingMail = (props: DialogSendingMailProps) => {
23
23
  {children}
24
24
  </DialogBookingConfirm>
25
25
  );
26
- };
26
+ }
27
27
 
28
28
  DialogSendingMail.SingleQuote = DialogSendingMailContent;
29
29
  DialogSendingMail.MultipleQuotes = DialogSendingMailMultiple;
@@ -1,5 +1,5 @@
1
1
  import { zodResolver } from '@hookform/resolvers/zod';
2
- import React, { useEffect } from 'react';
2
+ import { useEffect } from 'react';
3
3
  import { useForm } from 'react-hook-form';
4
4
  import Button from '../../atoms/Button/Button';
5
5
  import Input from '../../atoms/Inputs/Input/Input';
@@ -21,9 +21,7 @@ export interface DialogSendingMailContentProps {
21
21
  onCancel?: () => void;
22
22
  }
23
23
 
24
- export const DialogSendingMailContent: React.FC<DialogSendingMailContentProps> = (
25
- props
26
- ) => {
24
+ export function DialogSendingMailContent(props: DialogSendingMailContentProps) {
27
25
  const { userInfo, subject, type, onSubmit, onPreviewAttachment, onCancel } = props;
28
26
 
29
27
  const messageText = () => {
@@ -113,4 +111,4 @@ export const DialogSendingMailContent: React.FC<DialogSendingMailContentProps> =
113
111
  </form>
114
112
  </Form>
115
113
  );
116
- };
114
+ }
@@ -1,6 +1,6 @@
1
1
  import Checkbox from '@/src/components/atoms/Checkbox/Checkbox';
2
2
  import SelectedValue from '@/src/components/atoms/SelectedValue/SelectedValue';
3
- import React, { useEffect, useMemo, useState } from 'react';
3
+ import { useEffect, useMemo, useState } from 'react';
4
4
  import {
5
5
  DialogSendingMailContent,
6
6
  DialogSendingMailContentProps,
@@ -57,9 +57,7 @@ export interface DialogSendingMailMultipleProps extends Omit<
57
57
  *
58
58
  * @param props - The props of the component
59
59
  */
60
- export const DialogSendingMailMultiple: React.FC<DialogSendingMailMultipleProps> = (
61
- props
62
- ) => {
60
+ export function DialogSendingMailMultiple(props: DialogSendingMailMultipleProps) {
63
61
  const { data, onSelected, onSubmit, onPreviewAttachment, ...rest } = props;
64
62
 
65
63
  const [isSelectAll, setIsSelectAll] = useState(false);
@@ -179,4 +177,4 @@ export const DialogSendingMailMultiple: React.FC<DialogSendingMailMultipleProps>
179
177
  />
180
178
  </div>
181
179
  );
182
- };
180
+ }