Skip to content

Commit

Permalink
fix: category -> categoryChip 이름 변경 및 css 참조 수정 (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeeZinu committed Jun 6, 2024
1 parent 7967949 commit d866530
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 2 additions & 10 deletions src/components/Card/Activity/Activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable react/require-default-props */ // type에 ? 연산자 추가하기 위한 주석
import Image from "next/image";
import React from "react";
import Category from "@/app/_home/components/Category/Category/Category";
import CategoryChip from "@/components/Chip/Category-chip/CategoryChip";
import { STAR_ACTIVE_ICON, BUBBLE_ICON } from "@/utils/constant";
import styles from "./Activity.module.scss";

Expand Down Expand Up @@ -51,15 +51,7 @@ export default function Activity({ title, averageRating, reviewCount, chipCatego
<span>{namuji}</span>
</div>
{title === "관심 카테고리" ? (
<Category
isOpen={false}
// eslint-disable-next-line react/jsx-no-bind
onToggle={function (): void {
throw new Error("Function not implemented.");
}}
>
{chipCategoty?.name}
</Category>
<CategoryChip>{chipCategoty?.name}</CategoryChip>
) : (
<div className={styles.contentBox}>
<figure className={styles.imageBox}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Chip/Category-chip/CategoryChip.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { HTMLAttributes } from "react";
import styles from "./Category.module.scss";
import styles from "./CategoryChip.module.scss";

type CategoryProps = {
children?: keyof typeof CATEGORY_TYPE;
Expand Down

0 comments on commit d866530

Please sign in to comment.