Skip to content

Commit a10975a

Browse files
authored
Merge pull request #132 from PoolC/pre-release
Fix: 게시물 작성자 이름 클릭 시 멤버 페이지로 이동하는 기능 삭제
2 parents 7b76b73 + f86ed98 commit a10975a

3 files changed

Lines changed: 26 additions & 22 deletions

File tree

src/components/board/Post/Post.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
} from '../PostForm/PostForm.styles';
2121
import { Viewer } from '@toast-ui/react-editor';
2222
import getFileUrl, { getDecodedFileUrl } from '../../../lib/utils/getFileUrl';
23-
import { MemberLink } from '../PostList/PostList.styles';
23+
import { MemberName } from '../PostList/PostList.styles';
2424
import Spinner from '../../common/Spinner/Spinner';
2525

2626
const Post = ({
@@ -51,9 +51,9 @@ const Post = ({
5151
<PostContainer>
5252
<TitleContainer>{post.title}</TitleContainer>
5353
<InfoContainer>
54-
<MemberLink to={`/${MENU.MEMBER}/${post.writerLoginId}`}>
54+
<MemberName>
5555
{post.writerName}
56-
</MemberLink>
56+
</MemberName>
5757
<div />
5858
<p>{getFullCurrentDateTimeString(post.createdAt)}</p>
5959
</InfoContainer>

src/components/board/PostList/PostList.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
DateIcon,
1818
PostListRowAuthor,
1919
PostListRowDate,
20-
MemberLink,
20+
MemberName,
2121
NewIcon,
2222
StyledTitleLink,
2323
} from './PostList.styles';
@@ -96,9 +96,9 @@ const PostList = ({
9696
className="fas fa-user"
9797
style={{ marginRight: '0.2rem' }}
9898
></WriterIcon>
99-
<MemberLink to={`/${MENU.MEMBER}/${post.writerLoginId}`}>
99+
<MemberName>
100100
{post.writerName}
101-
</MemberLink>
101+
</MemberName>
102102
</PostListRowAuthor>
103103
<PostListRowDate>
104104
<DateIcon

src/components/board/PostList/PostList.styles.js

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import styled from 'styled-components';
22
import colors from '../../../lib/styles/colors';
33
import { Link } from 'react-router-dom';
44

5-
export const PostListHeader = styled.header`
5+
export const PostListHeader = styled.header `
66
display: flex;
77
align-items: center;
88
width: 90%;
@@ -14,7 +14,7 @@ export const PostListHeader = styled.header`
1414
}
1515
`;
1616

17-
export const PostListTable = styled.table`
17+
export const PostListTable = styled.table `
1818
display: flex;
1919
flex-direction: column;
2020
width: 90%;
@@ -32,7 +32,7 @@ export const PostListTable = styled.table`
3232
}
3333
`;
3434

35-
export const PostListHead = styled.tr`
35+
export const PostListHead = styled.tr `
3636
position: relative;
3737
cursor: default;
3838
display: flex;
@@ -87,7 +87,7 @@ export const PostListHead = styled.tr`
8787
}
8888
`;
8989

90-
export const NewIcon = styled.span`
90+
export const NewIcon = styled.span `
9191
background-color: ${colors.red[0]};
9292
opacity: 0.8;
9393
color: white;
@@ -114,14 +114,16 @@ export const NewIcon = styled.span`
114114
}
115115
`;
116116

117-
export const StyledTitleLink = styled(Link)`
117+
// eslint-disable-next-line
118+
export const StyledTitleLink = styled(Link)
119+
`
118120
white-space: nowrap;
119121
overflow: hidden;
120122
text-overflow: ellipsis;
121123
color: ${colors.brown[1]};
122124
`;
123125

124-
export const PostListRow = styled.tr`
126+
export const PostListRow = styled.tr `
125127
position: relative;
126128
cursor: default;
127129
display: flex;
@@ -156,21 +158,21 @@ export const PostListRow = styled.tr`
156158
}
157159
`;
158160

159-
export const WriterIcon = styled.i`
161+
export const WriterIcon = styled.i `
160162
display: none;
161163
@media (max-width: 768px) {
162164
display: inline-block;
163165
}
164166
`;
165167

166-
export const DateIcon = styled.i`
168+
export const DateIcon = styled.i `
167169
display: none;
168170
@media (max-width: 768px) {
169171
display: inline-block;
170172
}
171173
`;
172174

173-
export const SubInfoContainer = styled.td`
175+
export const SubInfoContainer = styled.td `
174176
display: flex;
175177
position: absolute;
176178
right: 0;
@@ -186,7 +188,7 @@ export const SubInfoContainer = styled.td`
186188
}
187189
`;
188190

189-
export const PostListRowAuthor = styled.div`
191+
export const PostListRowAuthor = styled.div `
190192
display: flex;
191193
align-items: center;
192194
justify-content: center;
@@ -203,7 +205,7 @@ export const PostListRowAuthor = styled.div`
203205
}
204206
`;
205207

206-
export const PostListRowDate = styled.div`
208+
export const PostListRowDate = styled.div `
207209
display: flex;
208210
align-items: center;
209211
justify-content: center;
@@ -221,11 +223,11 @@ export const PostListRowDate = styled.div`
221223
}
222224
`;
223225

224-
export const Title = styled.div`
226+
export const Title = styled.div `
225227
display: flex;
226228
`;
227229

228-
export const CommentCount = styled.span`
230+
export const CommentCount = styled.span `
229231
display: flex;
230232
align-items: center;
231233
justify-content: center;
@@ -239,16 +241,18 @@ export const CommentCount = styled.span`
239241
}
240242
`;
241243

242-
export const StyledLink = styled(Link)`
244+
// eslint-disable-next-line
245+
export const StyledLink = styled(Link)
246+
`
243247
color: ${colors.brown[1]};
244248
`;
245249

246-
export const MemberLink = styled(Link)`
250+
export const MemberName = styled.p `
247251
color: ${colors.brown[1]};
248252
transition: 0.25s ease-in;
249253
&:hover {
250254
text-decoration: none;
251255
color: ${colors.brown[0]};
252256
transition: 0.25s ease-in;
253257
}
254-
`;
258+
`;

0 commit comments

Comments
 (0)