From f18e3732c1de4605077e160a387c6867a80f5f48 Mon Sep 17 00:00:00 2001 From: Dahyeon Jin Date: Mon, 23 Dec 2024 00:31:11 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20children=20=EA=B0=95=EC=A0=9C?= =?UTF-8?q?=EC=84=B1=20=EC=A0=9C=EC=99=B8=EB=A5=BC=20=EC=9C=84=ED=95=B4=20?= =?UTF-8?q?React.FC=20=ED=83=80=EC=9E=85=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Button/CategoryButton.tsx | 6 ++---- src/components/Button/FollowButton.tsx | 6 +++--- src/components/Button/SquareButtonL.tsx | 6 ++---- src/components/FilterDropdown/index.tsx | 6 +++--- src/components/Icon/Icon.tsx | 9 ++------- src/components/Icon/icons/Close.tsx | 9 ++++++--- src/components/Icon/icons/Menu.tsx | 7 ++++--- src/components/Icon/iconsNames.ts | 10 ++++++++-- src/components/Pagination/index.tsx | 6 ++---- 9 files changed, 32 insertions(+), 33 deletions(-) diff --git a/src/components/Button/CategoryButton.tsx b/src/components/Button/CategoryButton.tsx index e3a14fb..927ae96 100644 --- a/src/components/Button/CategoryButton.tsx +++ b/src/components/Button/CategoryButton.tsx @@ -1,8 +1,6 @@ import { CategoryButtonProps } from '@/types'; -import { FC } from 'react'; - -const CategoryButton: FC = ({ +const CategoryButton = ({ backgroundColor = 'bg-gray-800', textColor = 'text-gray-300', textSize, @@ -10,7 +8,7 @@ const CategoryButton: FC = ({ onClick, ariaLabel, -}) => { +}: CategoryButtonProps) => { return (