Skip to content

Commit

Permalink
Merge pull request #19 from Konkuk-KUIT/dainn
Browse files Browse the repository at this point in the history
Fix: 바 수정
  • Loading branch information
dainshon authored Jul 5, 2024
2 parents 0d0b1f6 + 2056db6 commit 1c7ef7a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
15 changes: 8 additions & 7 deletions src/pages/AddHabit/addHabit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,20 @@ const addHabit = () => {
});

const url = import.meta.env.VITE_API_BACK_URL;
fetch(url + "/habits/add", {

fetch("http://43.201.218.143:8080/habits/add", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"userId": 1,
"name": habbitName,
"start_date": startDate,
"end_date": endDate,
"background_color": "#FFFFFF",
"sticker_id": 1,
"memo": memo
"name": "string",
"startDate": "2024-07-05",
"endDate": "2024-07-05",
"backgroundColor": "string",
"stickerId": 0,
"memo": "string"
}),
})
.then((response) => response.json())
Expand Down
4 changes: 2 additions & 2 deletions src/pages/MyProgress/myProgress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ const Progress = styled.progress`
&::-webkit-progress-value {
background: #C57BED;
border-radius: 0px;
height: 28px;
width: 48px;
height: 45px;
width: 90%;
}
`;

Expand Down

0 comments on commit 1c7ef7a

Please sign in to comment.