Skip to content

Commit

Permalink
Merge pull request #441 from SejongPeer/JunYoung
Browse files Browse the repository at this point in the history
QA 반영
  • Loading branch information
JunYoungKr authored Sep 3, 2024
2 parents 8657739 + 86b8c07 commit 0fcb826
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 27 deletions.
Binary file modified src/assets/image/peerUse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/image/sejongBuddycat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/headerRefactor/SubHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const SubHeader = ({ text, customBackLink }) => {
}
};

const handleGoBack = () => {
const handleGoBack = () => {
// 커스텀 링크가 제공된 경우 해당 링크로 이동
if (customBackLink) {
navigate(customBackLink);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/buddy/info/BuddyStart.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
flex-direction: column;
align-items: center;
padding: 12px 16px;
margin-top: 40px;
/* margin-top: 40px; */
}

.btn1 {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/main/mainPage/MainPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const MainPage = () => {
const urls = [
'https://sejonghonbab.simple.ink/', // 혼밥 이용방법
'https://sejongbuddy.simple.ink/', // 세종버디 이용방법
'https://sejongpeer.simple.ink/', // FAQ
'https://sejongpeer.notion.site/bd0e00cbc146400ab78e0e2ee34c8edf?pvs=4/', // FAQ
];

// 이미지 클릭 이벤트 핸들러, 인덱스에 해당하는 URL로 이동
Expand Down
10 changes: 5 additions & 5 deletions src/pages/myPage/mypage/MyPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,12 @@ const MyPage = () => {
</p>
</div>
<div className={styles.matchingBox}>
<button className={styles.matchingButton}>
<button
className={styles.matchingButton}
onClick={handleAppliedStudy}
>
<div className={styles.leftBox}>
<div
className={`${styles.redWord} ${styles.checkWord}`}
onClick={handleAppliedStudy}
>
<div className={`${styles.redWord} ${styles.checkWord}`}>
지원한 스터디 확인
</div>
<div
Expand Down
11 changes: 6 additions & 5 deletions src/pages/myPage/mypage/MyPage.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -337,26 +337,27 @@
font-size: 16px;
color: #ff4b4b;
height: 2vh;
width: 30vw;
/* width: 30vw; */
}

.checkWord {
width: 65vw; /* 너비를 넓혔습니다 */
text-align: left;
}

.buddyImg,
.honbobImg {
width: 7vh;
height: 7vh;
width: 64px;
height: 48px;
margin-right: 0.2vw;
border: none;
}

.buddyImg {
background-image: url('../../../assets/image/sejongBuddycat.png');
background-repeat: no-repeat;
background-position: center center;
background-size: cover;
background-size: contain;
border: none;
}

.honbobImg {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/myPage/mypage/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const fetchAppliedStudies = async () => {
withCredentials: true,
}
);
// console.log(response);
console.log(response.data.data);
return response.data;
};

Expand Down
2 changes: 1 addition & 1 deletion src/pages/study/studyList/StudyList.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const StudyList = () => {

return (
<Container>
<SubHeader text="세종스터디" customBackLink="/mypage" />
<SubHeader text="세종스터디" customBackLink="/main" />
<FilterBox>
{category === 0 ? (
<Filter
Expand Down
24 changes: 12 additions & 12 deletions src/pages/study/studyList/StudyListPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const StudyListPost = ({ post }) => {
totalRecruitmentCount,
participantCount,
recruitmentStatus,
recruitmentEndAt
recruitmentEndAt,
isScraped,
} = post;
const isScrapped = localStorage.getItem(`isScrapped_${id}`) === 'true'; // 스크랩 상태 확인

const formatDate = dateString => {
const date = new Date(dateString);
Expand Down Expand Up @@ -58,18 +58,18 @@ const StudyListPost = ({ post }) => {
<Title>{title}</Title>
{hasImage && <ImageIcon src={picture} alt="hasImage" />}
</PostMiddle>
{recruitmentStatus === '모집 중'?
<Count>
{participantCount} / {totalRecruitmentCount}
</Count>
:
<Finish>모집완료</Finish>
}
{recruitmentStatus === '모집 중' ? (
<Count>
{participantCount} / {totalRecruitmentCount}
</Count>
) : (
<Finish>모집완료</Finish>
)}
</div>

<PostBottom>
<Like>
<LikeIcon src={isScrapped ? filledHeart : heart} alt="like" />
<LikeIcon src={isScraped ? filledHeart : heart} alt="like" />
<LikeNumber>{post.scrapCount}</LikeNumber>
</Like>
</PostBottom>
Expand All @@ -85,7 +85,7 @@ const PostWrapper = styled.div`
flex-direction: column;
border-bottom: 1px solid ${COLORS.line2};
padding: 12px 16px;
background-color: ${({ $recruitmentStatus }) =>
background-color: ${({ $recruitmentStatus }) =>
$recruitmentStatus === '모집 중' ? '#FFF' : '#EEEEEE'};
`;

Expand Down Expand Up @@ -173,7 +173,7 @@ const PostBottom = styled.div`
display: flex;
align-items: center;
margin-tozzzzzzzzp: 6px;
display: inline-block
display: inline-block;
`;

const Like = styled.div`
Expand Down

0 comments on commit 0fcb826

Please sign in to comment.