Skip to content

Commit

Permalink
[FIX] 사용할수 없는 api주석 처리#1083
Browse files Browse the repository at this point in the history
  • Loading branch information
Junho jeon authored and Junho jeon committed Nov 14, 2023
1 parent fd9f10a commit 01d8d4b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
18 changes: 9 additions & 9 deletions components/modal/tournament/TournamentRegistryModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
ModalButtonContainer,
ModalButton,
} from 'components/modal/ModalButton';
import styles from 'styles/modal/event/AnnouncementModal.module.scss';
import styles from 'styles/modal/event/TournamentRegistryModal.module.scss';
import 'react-quill/dist/quill.bubble.css';

const Quill = dynamic(() => import('react-quill'), {
Expand Down Expand Up @@ -35,8 +35,15 @@ export default function TournamentRegistryModal({

return (
<div className={styles.container}>
<div className={styles.closeButtonContainer}>
<ModalButton
onClick={closeModalButtonHandler}
value='X'
style='negative'
/>
</div>
<div className={styles.title}>{title}</div>
<div className={styles.title}>{startTime.toString()}</div>
<div className={styles.startTime}>{startTime.toString()}</div>
<Quill
className={styles.quillViewer}
readOnly={true}
Expand All @@ -45,13 +52,6 @@ export default function TournamentRegistryModal({
theme='bubble'
/>
<div>
<ModalButtonContainer>
<ModalButton
onClick={closeModalButtonHandler}
value='나가기'
style='positive'
/>
</ModalButtonContainer>
<ModalButtonContainer>
<ModalButton
onClick={registTournament}
Expand Down
38 changes: 19 additions & 19 deletions pages/tournament.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,27 +86,27 @@ const tempData: TempData = {
export default function Tournament() {
const setError = useSetRecoilState(errorState);

const openTorunamentInfo = useQuery<TournamentInfo>(
'openTorunamentInfo',
() =>
instance
.get('pingpong/tournaments?page=*&type=*&status=진행중')
.then((res) => res.data),
{ retry: 1, staleTime: 60000 /* 60초 */ }
);
// const openTorunamentInfo = useQuery<TournamentInfo>(
// 'openTorunamentInfo',
// () =>
// instance
// .get('pingpong/tournaments?page=*&type=*&status=진행중')
// .then((res) => res.data),
// { retry: 1, staleTime: 60000 /* 60초 */ }
// );

const waitTournamentInfo = useQuery<TournamentInfo>(
'waitTournamentInfo',
() =>
instance
.get('pingpong/tournaments?page=*&type=*&status=예정')
.then((res) => res.data),
{ retry: 1, staleTime: 60000 /* 60초 */ }
);
// const waitTournamentInfo = useQuery<TournamentInfo>(
// 'waitTournamentInfo',
// () =>
// instance
// .get('pingpong/tournaments?page=*&type=*&status=예정')
// .then((res) => res.data),
// { retry: 1, staleTime: 60000 /* 60초 */ }
// );

if (openTorunamentInfo.isError || waitTournamentInfo.isError) {
setError('junhjeon');
}
// if (openTorunamentInfo.isError || waitTournamentInfo.isError) {
// setError('junhjeon');
// }

return (
<div className={styles.pageWrap}>
Expand Down

0 comments on commit 01d8d4b

Please sign in to comment.