Skip to content

Commit

Permalink
fix: 오타 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
eun-hak committed Jun 11, 2024
1 parent 74c3757 commit 6975a49
Showing 1 changed file with 1 addition and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client';
import React, { useEffect } from 'react';
import React from 'react';
import MyReservationHeader from './MyReservationHeader';
import MyReservationNav from './MyReservationNav';
import TodayReservation from './TodayReservation';
Expand All @@ -8,32 +8,10 @@ import FRDetailModal from './modal/FRDetailModal';
import MeetingDetailModal from './modal/MeetingDetailModal';
import ReservationDeleteModal from './modal/ReservationDeleteModal';
import ExpectedReservationIndex from './expectedReservation/ExpectedReservationIndex';
import { getReservationDetail } from '../remote/myreservation';
import { useQuery } from 'react-query';

const MyReservationListIndex = () => {
const { open, reservationId, isMeeting, deleteOpen, deleteDeskId } =
useReservationStore();

const { data } = useQuery(
['reservationDetail', reservationId],
async () => await getReservationDetail(reservationId),
{
enabled: reservationId != null
}
);

useEffect(() => {
console.log(data);
// if (!LateDataTest) {
// alert('이미 종료된 일정입니다');
// router.push('/');
// }
}, [data]);

if (data == undefined) {
return null;
}
return (
<div className="mb-[100px] ">
<header>
Expand Down

0 comments on commit 6975a49

Please sign in to comment.