Skip to content

Commit

Permalink
Merge pull request #60 from LikeLionHGU/hwan_#57/로그인확인오류수정
Browse files Browse the repository at this point in the history
Hwan #57/로그인확인오류수정
  • Loading branch information
hwan129 authored Jun 8, 2024
2 parents 3194e03 + 623c554 commit 1670815
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 19 deletions.
14 changes: 11 additions & 3 deletions src/components/header/header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ const Title = styled.div`
font-family: Dream5;
`;

const ReturnBtn = styled.button`
const ReturnBtn = styled.a`
border: 1px solid #410a0a;
border-radius: 30px;
margin-top: 4px;
text-decoration: none;
background-color: white;
width: 79px;
height: 32px;
Expand Down Expand Up @@ -93,11 +95,17 @@ export default function Header({ isHeader }) {
function getButton(isHeader) {
switch (isHeader) {
case "test":
return <ReturnBtn>처음으로</ReturnBtn>;
return (
<ReturnBtn href="/test" onClick={() => window.location.reload()}>
처음으로
</ReturnBtn>
);
case "ramentest":
return (
// <Link to="/test">
<ReturnBtn>처음으로</ReturnBtn>
<ReturnBtn href="/test" onClick={() => window.location.reload()}>
처음으로
</ReturnBtn>
// </Link>
);
case "main":
Expand Down
12 changes: 4 additions & 8 deletions src/components/review/completeReview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,10 @@ export default function CompleteReview() {
<SidebarContainer>
<Character src={CharacterLogo} alt="캐릭터 로고" />
<CheckBtn
onClick={
(() => {
setReviewUiState(false);
},
() => {
setCompleteReview(false);
})
}
onClick={() => {
setCompleteReview(false);
setReviewUiState(false);
}}
>
확인
</CheckBtn>
Expand Down
12 changes: 11 additions & 1 deletion src/components/review/mapLogo.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import styled from "styled-components";
import CharacterLogo from "../../imgs/characterLogo.svg";
import { useNavigate } from "react-router-dom";

const Sidebar = styled.div`
position: absolute;
Expand All @@ -13,12 +14,21 @@ const Character = styled.img`
height: 48px;
margin-top: 10px;
margin-right: 14px;
&:hover {
cursor: pointer;
}
`;

export default function MapLogo() {
const navigate = useNavigate();

function toMain() {
navigate("/");
}
return (
<Sidebar>
<Character src={CharacterLogo} alt="캐릭터 로고" />
<Character onClick={toMain} src={CharacterLogo} alt="캐릭터 로고" />
</Sidebar>
);
}
10 changes: 4 additions & 6 deletions src/components/review/onLogin.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,10 @@ export default function OnLogin() {
취소
</CancelReview>
<SubmitReview
onClick={
(handleSubmit,
() => {
setCompleteReview(true);
})
}
onClick={(e) => {
handleSubmit(e);
setCompleteReview(true);
}}
>
등록
</SubmitReview>
Expand Down
8 changes: 7 additions & 1 deletion src/components/review/reviewList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,13 @@ export default function ReviewList() {
<ReviewBox key={index}>
<UserInfo>
<UserChar>
{<img src={review.reviewUserImage} alt="Character" />}
{
<img
src={review.reviewUserImage}
style={{ width: "48px", height: "48px" }}
alt="Character"
/>
}
</UserChar>
<UserBox>
<UserName>{review.reviewerName}</UserName>
Expand Down

0 comments on commit 1670815

Please sign in to comment.