-
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.
Revert "[Feature]: 스터디 상세 정보 작성 (#56)"
This reverts commit 6a5c088.
- Loading branch information
Showing
51 changed files
with
216 additions
and
1,030 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,11 @@ | ||
import { fetcher } from "@wow-class/utils"; | ||
import { apiPath } from "constants/apiPath"; | ||
import type { CreateStudyApiRequestDto } from "types/dtos/createStudy"; | ||
|
||
export const createStudyApi = { | ||
postCreateStudy: async (data: CreateStudyApiRequestDto) => { | ||
const response = await fetcher.post(apiPath.createStudy, data); | ||
|
||
return { success: response.ok }; | ||
}, | ||
}; |
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,22 +1,18 @@ | ||
import { fetcher } from "@wow-class/utils"; | ||
import { apiPath } from "constants/apiPath"; | ||
import type { CreateStudyApiRequestDto } from "types/dtos/createStudy"; | ||
import type { CreateStudyDetailInfoApiRequestDto } from "types/dtos/studyDetailInfo"; | ||
import { tags } from "constants/tags"; | ||
import type { StudyListApiResponseDto } from "types/dtos/studyList"; | ||
|
||
export const createStudyApi = { | ||
postCreateStudy: async (data: CreateStudyApiRequestDto) => { | ||
const response = await fetcher.post(apiPath.createStudy, data); | ||
|
||
return { success: response.ok }; | ||
}, | ||
postStudyDetailInfo: async ( | ||
data: CreateStudyDetailInfoApiRequestDto, | ||
studyId: number | ||
) => { | ||
const response = await fetcher.patch( | ||
`${apiPath.createStudyDetailInfo}/${studyId}`, | ||
data | ||
getStudyList: async () => { | ||
const response = await fetcher.get<StudyListApiResponseDto[]>( | ||
apiPath.studyList, | ||
{ | ||
next: { tags: [tags.studyList] }, | ||
cache: "force-cache", | ||
} | ||
); | ||
return { success: response.ok }; | ||
|
||
return response.data; | ||
}, | ||
}; |
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 |
---|---|---|
|
@@ -8,6 +8,3 @@ body { | |
flex-direction: row; | ||
min-height: 100vh; | ||
} | ||
::-webkit-scrollbar { | ||
display: none; | ||
} |
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
4 changes: 2 additions & 2 deletions
4
apps/admin/app/studies/[studyId]/_components/assignment/AssignmentList.tsx
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
30 changes: 0 additions & 30 deletions
30
apps/admin/app/studies/[studyId]/_components/curriculum/CurriculumList.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.