Skip to content

Commit

Permalink
Merge pull request #68 from CAU-Capstone-FindIt/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
bhs3066 authored Dec 5, 2024
2 parents ea829dc + 11a8700 commit e087140
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions src/pages/Detail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,10 @@ const Detail = () => {
}
);
console.log(response.data);
window.location.reload(true);
navigate("/find");
return response;
} catch (error) {
console.error("거래 실패:", error);

if (error.response.status === 401) {
console.log(error.response.status);
alert("게시글을 등록하려면 로그인해주세요");
Expand Down Expand Up @@ -167,11 +166,11 @@ const Detail = () => {
);

console.log(response.data);
window.location.reload(true);
// window.location.reload(true);
navigate("/lost");
return response;
} catch (error) {
console.error("거래 실패:", error);

if (error.response.status === 401) {
console.log(error.response.status);
alert("게시글을 등록하려면 로그인해주세요");
Expand All @@ -192,8 +191,10 @@ const Detail = () => {
}
let itemId = report.id;
let receiverId = report.userId;
let senderId = localStorage.getItem("userID")
navigate("/messageDetail", { state: { itemId, itemType, receiverId, senderId } });
let senderId = localStorage.getItem("userID");
navigate("/messageDetail", {
state: { itemId, itemType, receiverId, senderId },
});
}
};

Expand Down Expand Up @@ -239,7 +240,7 @@ const Detail = () => {
</LabelBox>
<LabelBox>
<Label>분류번호 :</Label>
<LabelData>몰라</LabelData>
<LabelData>{report.id}</LabelData>
</LabelBox>
</div>
</ContentDetailBox>
Expand Down Expand Up @@ -391,6 +392,7 @@ const TitleBox = styled.div`
width: 100%;
display: flex;
justify-content: end;
align-items: center;
@media (max-width: 400px) {
font-size: 13px;
}
Expand Down Expand Up @@ -431,11 +433,9 @@ const LabelBox = styled.div`

const Label = styled.div`
font-weight: bold;
width: 40%;
`;

const LabelData = styled.div`
width: 60%;
font-weight: 550;
`;
const ShareIconBox = styled.div`
Expand Down
1 change: 0 additions & 1 deletion src/pages/mappage/ModalItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ const CategoryBox = styled.h5`
`;

const DetailBtn = styled.button`
width: 40%;
padding: 0.5rem 1rem;
text-align: center;
border-radius: 10px;
Expand Down
5 changes: 3 additions & 2 deletions src/pages/userpage/Userpage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ const Container = styled.div`
background-color: white;
width: 100%;
max-width: 600px;
height: 100vh;
// 스크롤 웹전체로 함 100%로 높이 변경
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
overflow-y: auto;
// overflow-y: auto;
`;

const InnerContainer = styled.div`
Expand Down

0 comments on commit e087140

Please sign in to comment.