Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: 내가 쓴글 , 댓글 버튼위치 이동 #81

Merged
merged 1 commit into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions src/pages/myBoard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,8 @@ const Myboard = () => {
}
return (
<div className={styles.container}>
<div className={styles['board-btn-box']}>
<h3>내가 쓴글</h3>
{data && (
<>
<span onClick={() => clickHandleData('MORE')}>더보기</span>
<span onClick={() => clickHandleData('RESET')}>닫기</span>
</>
)}
</div>
<h3>내가 쓴글</h3>

<div className={styles['board-list-container']}>
{data ? (
data?.map((item, index) => {
Expand All @@ -100,6 +93,12 @@ const Myboard = () => {
<>작성한 게시글이 없습니다.</>
)}
</div>
{data && (
<div className={styles['board-btn-box']}>
<span onClick={() => clickHandleData('MORE')}>더보기</span>
<span onClick={() => clickHandleData('RESET')}>닫기</span>
</div>
)}
</div>
);
};
Expand Down
3 changes: 2 additions & 1 deletion src/pages/myBoard/myBoard.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@
display: flex;
align-items: center;
column-gap: 0.5rem;
color: $red-300;

span {
font-size: $--size-subtext;
&:hover {
color: $red-300;
color: $red-500;
cursor: pointer;
}
}
Expand Down
14 changes: 5 additions & 9 deletions src/pages/myComments/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,7 @@ const MyCommenets = () => {
return (
<div className={styles.container}>
<div className={styles.article}>
<div className={styles['board-btn-box']}>
<h3>내가 쓴 댓글</h3>
{data && (
<>
<span onClick={() => clickHandleData('ADD')}>더보기</span>
<span onClick={() => clickHandleData('RESET')}>닫기</span>
</>
)}
</div>
<h3>내가 쓴 댓글</h3>
</div>
<div className={styles['item-box']}>
{data ? (
Expand All @@ -81,6 +73,10 @@ const MyCommenets = () => {
<>작성한 댓글이 없습니다.</>
)}
</div>
<div className={styles['board-btn-box']}>
<span onClick={() => clickHandleData('ADD')}>더보기</span>
<span onClick={() => clickHandleData('RESET')}>닫기</span>
</div>
</div>
);
};
Expand Down
3 changes: 2 additions & 1 deletion src/pages/myComments/myComments.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@
display: flex;
align-items: center;
column-gap: 0.5rem;
color: $red-300;

span {
font-size: $--size-subtext;
&:hover {
color: $red-300;
color: $red-500;
cursor: pointer;
}
}
Expand Down
Loading