Skip to content

Commit

Permalink
[#19] bug: vercel 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
MyungJiwoo committed Jun 29, 2024
1 parent f5973a6 commit e59a3d1
Showing 1 changed file with 71 additions and 61 deletions.
132 changes: 71 additions & 61 deletions src/pages/ReviewWriting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,83 +28,93 @@ const ReviewWriting = () => {
const data = {
minute1: minute1Converted,
second: second,
minute2: minute2Converted
minute2: minute2Converted,
};

axios.post('YOUR_BACKEND_ENDPOINT', data)
.then(response => {
console.log('Response:', response.data);
axios
.post("YOUR_BACKEND_ENDPOINT", data)
.then((response) => {
console.log("Response:", response.data);
})
.catch(error => {
console.error('Error:', error);
.catch((error) => {
console.error("Error:", error);
});
};

return (
<>
<Container>
<div>
<div>당신을 위한 방,</div>
<div>어떤 방이었나요?</div>
</div>
<div>
<textarea placeholder="테마 이름 적어주세요" />
</div>
</Container>
<Container>
<>
<Container>
<div>
<div>당신을 위한 방,</div>
<div>탈출 기록은 어떻게 되시나요?</div>
<div>어떤 방이었나요?</div>
</div>
<div>
<div>성공 여부</div>
<div>인원 수</div>
<div>힌트 사용 횟수</div>
<div>남은 시간</div>
<textarea placeholder="테마 이름 적어주세요" />
</div>
</Container>
<Container>
<>
<div>
<div>당신을 위한 방,</div>
<div>탈출 기록은 어떻게 되시나요?</div>
</div>
<div>
<div>성공 여부</div>
<div>인원 수</div>
<div>힌트 사용 횟수</div>
<div>남은 시간</div>
</div>
<div>
{/* <Select>탈출 성공</Select>
<Select>탈출 실패</Select> */}
</div>
<div>
<input type="number" />
</div>
<div>
<input type="number" />
</div>
<div>
<input
type="number"
value={minute1}
onChange={(e) => setMinute1(Number(e.target.value))}
/>
<input
type="number"
value={second}
onChange={(e) => setSecond(Number(e.target.value))}
/>
초 /
<input
type="number"
value={minute2}
onChange={(e) => setMinute2(Number(e.target.value))}
/>
</div>
</>
</Container>
<Container>
<div>
<Select>탈출 성공</Select>
<Select>탈출 실패</Select>
</div>
<div>
<input type="number" />
</div>
<div>
<input type="number" />
<div>당신을 위한 방,</div>
<div>어떠셨나요?</div>
</div>
<div>
<input type="number"
value={minute1}
onChange={(e) => setMinute1(Number(e.target.value))}
/>
<input type="number"
value={second}
onChange={(e) => setSecond(Number(e.target.value))}
/>초 /
<input type="number"
value={minute2}
onChange={(e) => setMinute2(Number(e.target.value))}
/>
<textarea
placeholder="한 줄 평 남겨주세요"
maxLength={500}
/>
</div>
</>
</Container>
<Container>
<div>
<div>당신을 위한 방,</div>
<div>어떠셨나요?</div>
</div>
<div>
<textarea placeholder="한 줄 평 남겨주세요" maxLength={500} />
</div>
<div onClick={handleSubmit}>
<button>제출</button>
<div>
<IoIosArrowForward />
<div onClick={handleSubmit}>
<button>제출</button>
<div>
<IoIosArrowForward />
</div>
</div>
</div>
</Container>
</Container>
</>
)
}
export default ReviewWriting;
);
};
export default ReviewWriting;

0 comments on commit e59a3d1

Please sign in to comment.