Skip to content

Commit

Permalink
Fix: ESLint 해결
Browse files Browse the repository at this point in the history
==쓰지말고 ===쓰래요
  • Loading branch information
Wisdom-Kim committed Aug 2, 2024
1 parent 0e834fb commit 1aa9783
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/pages/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,10 @@ const Home = () => {
return (
<div>
<Header />
<Wrapper>
<Wrapper>
{/* Wrapper 아래 태그는 display:flex, flex-direction:column으로 감싸진 곳이어야함 */}
<ContainerWrapper>
{/* 헤더가 보여질 공간을 띄워주긴 위한 Block컴포넌트(MUI아님!!!!)을 배치해야함 */}
<Block></Block>
<GlassCard width={"60vw"}>
<div
Expand Down
8 changes: 4 additions & 4 deletions src/pages/posts/PostDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ function PostDetail() {
</div>
<div style={{ display: 'flex' }}>
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', marginRight: '20px' }}>
{memberId == data.memberId && <MyBtn
{memberId === data.memberId && <MyBtn
color={palette.skyblue}
onClick={handleUpdate}>
수정
Expand All @@ -381,7 +381,7 @@ function PostDetail() {
</div>
</div>
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center' }}>
{(memberId == data.memberId || memberRole === 'ADMIN') && <MyBtn
{(memberId === data.memberId || memberRole === 'ADMIN') && <MyBtn
color={palette.skyblue}
onClick={() => setIsDeletePostModalOpen(true)}>
삭제
Expand Down Expand Up @@ -433,14 +433,14 @@ function PostDetail() {
</div>
<div style={{ display: 'flex' }}>
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', marginRight: '20px' }}>
{memberId == comment.memberId && <MyBtn
{memberId === comment.memberId && <MyBtn
color={palette.skyblue}
onClick={() => handleEditComment(comment.id, comment.content)}>
수정
</MyBtn>}
</div>
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center' }}>
{(memberId == comment.memberId || memberRole === 'ADMIN') &&
{(memberId === comment.memberId || memberRole === 'ADMIN') &&
<MyBtn
color={palette.skyblue}
onClick={() => {
Expand Down

0 comments on commit 1aa9783

Please sign in to comment.