Skip to content

Commit

Permalink
chore: (#124) 스타일드 컴포넌트 이름 수정 및 상수 URL 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilpop8663 committed Jul 26, 2023
1 parent 33f196c commit bb16155
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function CategoryToggle({
onClick={() => handleFavoriteClick(id)}
$isFavorite={isFavorite}
/>
<S.CategoryName to={`/posts/category/${id}`}>{name}</S.CategoryName>
<S.CategoryNameLink to={`/posts/category/${id}`}>{name}</S.CategoryNameLink>
</S.CategoryItem>
))}
</S.CategoryList>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const Caption = styled.span`
color: var(--dark-gray);
`;

export const CategoryName = styled(Link)`
export const CategoryNameLink = styled(Link)`
text-decoration: none;
color: inherit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';

import { User } from '@type/user';

import { BASE_PATH } from '@constants/path';
import { PATH } from '@constants/path';

import * as PS from '../profileStyle';

Expand All @@ -24,11 +24,11 @@ export default function UserProfile({ userInfo }: UserProfileProps) {
<S.TextCardTitle>포인트</S.TextCardTitle>
<S.TextCardContent>{userPoint}</S.TextCardContent>
</S.TextCardContainer>
<S.TextCardLink to={`${BASE_PATH.USER}/posts`}>
<S.TextCardLink to={PATH.USER_POST}>
<S.TextCardTitle>작성글</S.TextCardTitle>
<S.TextCardContent>{postCount}</S.TextCardContent>
</S.TextCardLink>
<S.TextCardLink to={`${BASE_PATH.USER}/votes`}>
<S.TextCardLink to={PATH.USER_VOTE}>
<S.TextCardTitle>투표수</S.TextCardTitle>
<S.TextCardContent>{voteCount}</S.TextCardContent>
</S.TextCardLink>
Expand Down

0 comments on commit bb16155

Please sign in to comment.