Skip to content

Commit

Permalink
[fix]: Home page에 Feedback Modal 적용 manito42#157
Browse files Browse the repository at this point in the history
  • Loading branch information
falconlee236 committed Oct 3, 2023
1 parent f1b8a39 commit e71a7d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 42manito/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { BannersData } from "@/components/Banners/Banners";
import { ReservationRole } from "@/Types/Reservations/ReservationRole";
import { ReservationStatus } from "@/Types/Reservations/ReservationStatus";
import CancelModal from "@/components/Cancel/CancelModal";
import FeedbackModal from "@/components/Reservation/modal/FeedbackModal";

const MentorModal = dynamic(() => import("@/components/Mentor/Modal"));

Expand All @@ -37,6 +38,9 @@ export default function Home() {
const isReservationModalOpen = useSelector(
(state: RootState) => state.rootReducers.reservation.isReservationModalOpen
);
const isFeedbackModalOpen = useSelector(
(state: RootState) => state.rootReducers.reservation.isFeedbackModalOpen
);
const isCancelModalOpen = useSelector(
(state: RootState) => state.rootReducers.reservation.isCancelModalOpen,
);
Expand Down Expand Up @@ -151,6 +155,7 @@ export default function Home() {
<MentorModal />
)}
{isReservationModalOpen && <ReservationModal />}
{isFeedbackModalOpen && <FeedbackModal />}
{isCancelModalOpen && (<CancelModal />)}
<button
onClick={scrollToTop}
Expand Down

0 comments on commit e71a7d9

Please sign in to comment.