Skip to content

Commit

Permalink
Chore(main, BracketContents): 채널링크 타입 추가 및 불필요한 공백 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
pp449 committed Jan 15, 2024
1 parent 08e5f3f commit c9e249e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Bracket/BracketContents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ interface Props {

const BracketContents = (props: Props) => {
const router = useRouter();

const { data, isSuccess, isError, isLoading } = useQuery({
queryKey: ['bracketContents', props.curRound, router.query.channelLink],
queryFn: () => fetchBracketContents(router.query.channelLink, props.curRound),
queryFn: () => fetchBracketContents(router.query.channelLink as string, props.curRound),
});

const moveToCheckIn = (matchId: number) => {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/contents/[channelLink]/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Main = () => {
const router = useRouter();
const { channelPermission } = useChannels();
const channelLink = router.query.channelLink;

const { data, isSuccess, refetch } = useQuery<MainContent | undefined>({
queryKey: ['getMainContents', channelLink],
queryFn: () => fetchMainContents(channelLink as string),
Expand Down

0 comments on commit c9e249e

Please sign in to comment.