forked from yapp-project/team02_frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See: Github issue yapp-project#15 --------------------------------------- ### 작업파일 * 등록 관련 파일들 * action, api, saga, reducer, container 아래 등록 관련 파일들 * 레시피 보기 관련 파일들 * HTML_TEST --------------------------------------- ### 작업내용 * 레시피 등록 api 연동 * api 이슈 해결 이후 레시피 보기에 맞게 컨버팅 * 테스트용 컴포넌트 삭제
- Loading branch information
Showing
23 changed files
with
259 additions
and
613 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
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,25 @@ | ||
export const actions = { | ||
ENROLMENT: { | ||
REQUEST: "ENROLMENT_REQUEST", | ||
SUCCESS: "ENROLMENT_SUCCESS", | ||
FAILED: "ENROLMENT_FAILED" | ||
} | ||
}; | ||
|
||
export function enrolmentRequest(data) { | ||
return { | ||
type: actions.ENROLMENT.REQUEST, | ||
payload: { | ||
data | ||
} | ||
}; | ||
} | ||
|
||
export function enrolmentSuccess(result) { | ||
return { | ||
type: actions.ENROLMENT.SUCCESS, | ||
payload: { | ||
result | ||
} | ||
}; | ||
} |
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,12 @@ | ||
import * as webRequestUtil from "./rootAPI"; | ||
|
||
export async function enrolmentRecipe({ data }) { | ||
const url = "recipe"; | ||
|
||
console.log(data); | ||
const body = { | ||
data | ||
}; | ||
const res = await webRequestUtil.post({ url, body }); | ||
return res.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
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.