File tree Expand file tree Collapse file tree
apps/ticket/src/app/(pages)
_clientBoundray/EventDetailClient
time-table/_clientBoundary/TimeTableClient Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ type Props = {
1919} ;
2020
2121export const EventDetailClient = ( { eventId } : Props ) => {
22- const { data : eventDetailData } = useEventDetailSuspenseQuery ( { eventId } ) ;
22+ const { data : eventDetailData } = useEventDetailSuspenseQuery ( {
23+ eventId,
24+ options : { refetchOnWindowFocus : true } ,
25+ } ) ;
2326
2427 return (
2528 < >
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ export const TimeTableClient = ({ eventId }: Props) => {
3535 refetchOnWindowFocus : true ,
3636 } ,
3737 } ) ;
38+
3839 const [ timetables , setTimetables ] = useState ( timetablesData ) ;
3940
4041 const timeSlots = useMemo (
@@ -174,6 +175,14 @@ export const TimeTableClient = ({ eventId }: Props) => {
174175 < Flex direction = "column" gap = { 16 } >
175176 < Typography type = "title20" > { timetables . eventName } </ Typography >
176177
178+ < Button
179+ className = { cx ( "back_button" ) }
180+ variant = "secondary"
181+ onClick = { handleBackButtonClick }
182+ >
183+ { "< back" }
184+ </ Button >
185+
177186 < Flex gap = { 8 } >
178187 < Button
179188 variant = "secondary"
@@ -188,14 +197,6 @@ export const TimeTableClient = ({ eventId }: Props) => {
188197 { "Sitemap" }
189198 </ Button >
190199 </ Flex >
191-
192- < Button
193- className = { cx ( "back_button" ) }
194- variant = "secondary"
195- onClick = { handleBackButtonClick }
196- >
197- { "< back" }
198- </ Button >
199200 </ Flex >
200201 < >
201202 { /* 즐겨찾기 버튼 영역 (media query 로 분기) */ }
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ const PaymentProcessPage = () => {
3838
3939 if ( isAxiosErrorResponse ( error ) ) {
4040 alert ( error . message ) ;
41+ } else {
42+ alert ( "알 수 없는 이유로 결제에 실패했습니다. 다시 시도해주세요." ) ;
4143 }
4244
4345 // 결제 실패 페이지로 라우팅
@@ -47,9 +49,6 @@ const PaymentProcessPage = () => {
4749
4850 return ;
4951 }
50-
51- alert ( "알 수 없는 이유로 결제에 실패했습니다. 다시 시도해주세요." ) ;
52- window . location . replace ( `${ window . location . origin } ` ) ;
5352 } ;
5453
5554 handlePaymentConfirm ( ) ;
You can’t perform that action at this time.
0 commit comments