Skip to content

Commit

Permalink
[#46] chore - 가운데로 넣기
Browse files Browse the repository at this point in the history
  • Loading branch information
nohgijin committed Jan 12, 2021
1 parent 56512a2 commit 560b935
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api/categoryAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const mockCategoriesList = {
},
{
id: 9,
category: '스포츠-모빌리티',
category: '스포츠',
img: 'https://img-cf.kurly.com/shop/data/goods/1567143195421z0.jpg',
link: 'sport',
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/CategoryPage/Category/Category.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function Category({ data, active }) {
src={data.img}
alt="카테고리 사진"
/>
<div className={cx('text', { active: active })}>{data.category}</div>
<span className={cx('text', { active: active })}>{data.category}</span>
</div>
</Link>
);
Expand Down
4 changes: 3 additions & 1 deletion src/components/CategoryPage/Category/Category.module.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
@import 'styles/_palette.scss';

.category {
text-align: center;
display: flex;
flex-direction: column;
height: 65px;
width: 65px;
padding: 10px;
Expand All @@ -19,6 +20,7 @@
}

.text {
text-align: center;
margin-top: 8px;
line-height: 18px;
white-space: nowrap;
Expand Down

0 comments on commit 560b935

Please sign in to comment.