From 7baae056555b7f52b87cfacbc59640d2528c0430 Mon Sep 17 00:00:00 2001 From: Hrishikesh Vaipurkar Date: Wed, 8 Jan 2025 15:02:28 +0100 Subject: [PATCH] feat: SW-1182 Moved modal to components folder --- .../HotelReservation/BookingConfirmation/Receipt/index.tsx | 3 +-- .../EnterDetails/Details/MemberPriceModal/index.tsx | 3 +-- components/HotelReservation/EnterDetails/Summary/UI/index.tsx | 2 +- .../SelectRate/RoomSelection/FlexibilityOption/index.tsx | 2 +- components/{HotelReservation => }/Modal/index.tsx | 0 components/{HotelReservation => }/Modal/modal.module.css | 0 components/{HotelReservation => }/Modal/modal.ts | 0 components/{HotelReservation => }/Modal/motionVariants.ts | 0 8 files changed, 4 insertions(+), 6 deletions(-) rename components/{HotelReservation => }/Modal/index.tsx (100%) rename components/{HotelReservation => }/Modal/modal.module.css (100%) rename components/{HotelReservation => }/Modal/modal.ts (100%) rename components/{HotelReservation => }/Modal/motionVariants.ts (100%) diff --git a/components/HotelReservation/BookingConfirmation/Receipt/index.tsx b/components/HotelReservation/BookingConfirmation/Receipt/index.tsx index 36270b2d3..888e31bb1 100644 --- a/components/HotelReservation/BookingConfirmation/Receipt/index.tsx +++ b/components/HotelReservation/BookingConfirmation/Receipt/index.tsx @@ -7,6 +7,7 @@ import { ChevronRightSmallIcon, InfoCircleIcon, } from "@/components/Icons" +import Modal from "@/components/Modal" import Button from "@/components/TempDesignSystem/Button" import Divider from "@/components/TempDesignSystem/Divider" import Link from "@/components/TempDesignSystem/Link" @@ -15,8 +16,6 @@ import Caption from "@/components/TempDesignSystem/Text/Caption" import Subtitle from "@/components/TempDesignSystem/Text/Subtitle" import { formatPrice } from "@/utils/numberFormatting" -import Modal from "../../Modal" - import styles from "./receipt.module.css" import type { BookingConfirmationReceiptProps } from "@/types/components/hotelReservation/bookingConfirmation/receipt" diff --git a/components/HotelReservation/EnterDetails/Details/MemberPriceModal/index.tsx b/components/HotelReservation/EnterDetails/Details/MemberPriceModal/index.tsx index d7fb1283f..63822e12f 100644 --- a/components/HotelReservation/EnterDetails/Details/MemberPriceModal/index.tsx +++ b/components/HotelReservation/EnterDetails/Details/MemberPriceModal/index.tsx @@ -5,14 +5,13 @@ import { useIntl } from "react-intl" import { useEnterDetailsStore } from "@/stores/enter-details" import { MagicWandIcon } from "@/components/Icons" +import Modal from "@/components/Modal" import Button from "@/components/TempDesignSystem/Button" import Body from "@/components/TempDesignSystem/Text/Body" import Subtitle from "@/components/TempDesignSystem/Text/Subtitle" import Title from "@/components/TempDesignSystem/Text/Title" import { formatPrice } from "@/utils/numberFormatting" -import Modal from "../../../Modal" - import styles from "./modal.module.css" import type { Dispatch, SetStateAction } from "react" diff --git a/components/HotelReservation/EnterDetails/Summary/UI/index.tsx b/components/HotelReservation/EnterDetails/Summary/UI/index.tsx index a64126bcb..9c30c2775 100644 --- a/components/HotelReservation/EnterDetails/Summary/UI/index.tsx +++ b/components/HotelReservation/EnterDetails/Summary/UI/index.tsx @@ -12,6 +12,7 @@ import { ChevronDownSmallIcon, ChevronRightSmallIcon, } from "@/components/Icons" +import Modal from "@/components/Modal" import Button from "@/components/TempDesignSystem/Button" import Divider from "@/components/TempDesignSystem/Divider" import Body from "@/components/TempDesignSystem/Text/Body" @@ -20,7 +21,6 @@ import Subtitle from "@/components/TempDesignSystem/Text/Subtitle" import useLang from "@/hooks/useLang" import { formatPrice } from "@/utils/numberFormatting" -import Modal from "../../../Modal" import PriceDetailsTable from "../PriceDetailsTable" import styles from "./ui.module.css" diff --git a/components/HotelReservation/SelectRate/RoomSelection/FlexibilityOption/index.tsx b/components/HotelReservation/SelectRate/RoomSelection/FlexibilityOption/index.tsx index 74f2d62db..a6da82392 100644 --- a/components/HotelReservation/SelectRate/RoomSelection/FlexibilityOption/index.tsx +++ b/components/HotelReservation/SelectRate/RoomSelection/FlexibilityOption/index.tsx @@ -5,12 +5,12 @@ import { useEffect, useRef } from "react" import { useIntl } from "react-intl" import { CheckCircleIcon, CheckIcon, InfoCircleIcon } from "@/components/Icons" +import Modal from "@/components/Modal" import Button from "@/components/TempDesignSystem/Button" import Label from "@/components/TempDesignSystem/Form/Label" import Body from "@/components/TempDesignSystem/Text/Body" import Caption from "@/components/TempDesignSystem/Text/Caption" -import Modal from "../../../Modal/index" import { RATE_CARD_EQUAL_HEIGHT_CLASS } from "../utils" import PriceTable from "./PriceList" diff --git a/components/HotelReservation/Modal/index.tsx b/components/Modal/index.tsx similarity index 100% rename from components/HotelReservation/Modal/index.tsx rename to components/Modal/index.tsx diff --git a/components/HotelReservation/Modal/modal.module.css b/components/Modal/modal.module.css similarity index 100% rename from components/HotelReservation/Modal/modal.module.css rename to components/Modal/modal.module.css diff --git a/components/HotelReservation/Modal/modal.ts b/components/Modal/modal.ts similarity index 100% rename from components/HotelReservation/Modal/modal.ts rename to components/Modal/modal.ts diff --git a/components/HotelReservation/Modal/motionVariants.ts b/components/Modal/motionVariants.ts similarity index 100% rename from components/HotelReservation/Modal/motionVariants.ts rename to components/Modal/motionVariants.ts