-
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.
Browse files
Browse the repository at this point in the history
* chore: 책 선택 스텝 경로 수정 * feat: useFunnel 커스텀훅에 currentStep 조회 기능 추가 * feat: 모임 생성 퍼널 작성 * feat: 모임 상세 퍼널 뒤로가기 버튼 기능 구현 * refactor: Funnel.tsx 경로 변경 및 공통 interface 정의 * refactor: 모임 생성 퍼널 코드 스플리팅 * chore: 모임 생성 퍼널 스텝 stories 경로 변경 * refactor: index 파일 정리 * refactor: formValues 타입 정리 * chore: 스토리북 import 경로 수정 * feat: 모임 생성 mutation 함수 작성 * feat: 독서 모임 생성 기능 구현 * chore: import문 수정 * refactor: StepFormValues 타입명 통일 (리뷰 반영) * feat: SwitchIsPublicField에서 isComment 값에 따른 안내 문구 표시 * chore: CreateBookGroupFunnel 컴포넌트 이름 수정 * feat: 독서 모임 생성시 독서 모임 상세 페이지로 이동
- Loading branch information
Showing
24 changed files
with
289 additions
and
488 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
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 |
---|---|---|
@@ -1,19 +1,7 @@ | ||
'use client'; | ||
import CreateBookGroupFunnel from '@/v1/bookGroup/create/CreateBookGroupFunnel'; | ||
|
||
import AddGroupForm from '@/ui/Group/AddGroupForm'; | ||
import { VStack } from '@chakra-ui/react'; | ||
import TopNavigation from '@/ui/common/TopNavigation'; | ||
import AuthRequired from '@/ui/AuthRequired'; | ||
|
||
const GroupCreatePage = () => { | ||
return ( | ||
<AuthRequired> | ||
<VStack justify="center" align="center"> | ||
<TopNavigation pageTitle="모임 생성" /> | ||
<AddGroupForm /> | ||
</VStack> | ||
</AuthRequired> | ||
); | ||
const GroupCreateFunnelPage = () => { | ||
return <CreateBookGroupFunnel />; | ||
}; | ||
|
||
export default GroupCreatePage; | ||
export default GroupCreateFunnelPage; |
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,13 @@ | ||
import { useMutation } from '@tanstack/react-query'; | ||
|
||
import type { APICreateGroup } from '@/types/group'; | ||
import groupAPI from '@/apis/group'; | ||
|
||
const useCreateBookGroupMutation = () => { | ||
return useMutation({ | ||
mutationFn: (formData: APICreateGroup) => | ||
groupAPI.createGroup(formData).then(({ data }) => data), | ||
}); | ||
}; | ||
|
||
export default useCreateBookGroupMutation; |
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
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
Oops, something went wrong.