-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: toast default 지연시간 2초로 늘림 * style: button foucs outline 스타일 수정 * feat: 모임 삭제 기능 구현 - 모임 상세 페이지 error boundary 추가 - 존재하지않는 모임 페이지 접근 시 not-found 페이지로 이동 - Query refetchOnWindowFocus 옵션 false
- Loading branch information
Showing
7 changed files
with
143 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import Button from '@/v1/base/Button'; | ||
import Image from 'next/image'; | ||
import Link from 'next/link'; | ||
|
||
export default function NotFound() { | ||
return ( | ||
<div className="absolute left-0 top-0 flex h-full w-full flex-col items-center justify-center gap-[2rem]"> | ||
<Image src="/images/loading.gif" width={230} height={160} alt="loading" /> | ||
<p className="text-2xl"> | ||
<span className="font-bold text-main-900">다독이</span>가 길을 잃었어요. | ||
</p> | ||
<Link href="/group"> | ||
<Button size="large" colorScheme="main" fill={false}> | ||
모임 둘러보기 | ||
</Button> | ||
</Link> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { useMutation } from '@tanstack/react-query'; | ||
|
||
import type { APIGroup } from '@/types/group'; | ||
|
||
import groupAPI from '@/apis/group'; | ||
|
||
const useDeleteBookGroupMutation = () => { | ||
return useMutation({ | ||
mutationFn: (bookGroupId: APIGroup['bookGroupId']) => | ||
groupAPI.deleteGroup({ bookGroupId }).then(({ data }) => data), | ||
}); | ||
}; | ||
|
||
export default useDeleteBookGroupMutation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters