Skip to content

Commit

Permalink
[Fix]LikeLion-at-DGU#27 - API 연결 test 및 요일 변환 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaem03 committed Oct 4, 2024
1 parent c3ab745 commit eafca3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/apis/booth.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const getBoothList = async ({
if (is_night !== undefined) params.append("is_night", is_night);
if (is_reservable !== undefined)
params.append("is_reservable", is_reservable);
console.log("params:", params.toString());

// 파라미터들을 포함한 GET 요청
const res = await instance.get(`api/v1/booth/?${params.toString()}`);
Expand Down
5 changes: 5 additions & 0 deletions src/pages/booth/BoothPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ export const BoothPage = () => {
const dayMap = {
: "Mon",
: "Tue",
: "Wed",
: "Thu",
: "Fri",
: "Sat",
: "Sun",
};
return dayMap[day] || ""; // 해당 요일의 영어 이름 반환
};
Expand Down

0 comments on commit eafca3f

Please sign in to comment.