From 8f7ed79c8883d59d40c034ed41ea239819e2ef29 Mon Sep 17 00:00:00 2001 From: wooooooooook Date: Sun, 26 Apr 2026 14:44:47 +0900 Subject: [PATCH] =?UTF-8?q?refactor.=20=EC=95=84=EC=9D=B4=EC=BD=98=20?= =?UTF-8?q?=EB=84=A4=EC=9D=B4=EB=B0=8D=20=EB=B0=8F=20=EC=82=AC=EC=9D=B4?= =?UTF-8?q?=EC=A6=88=20=ED=86=B5=EC=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/_components/Page1.tsx | 4 ++-- components/icons/arrow-back.tsx | 20 ----------------- .../{chevron-down.tsx => arrow-down.tsx} | 9 ++++---- components/icons/arrow-left.tsx | 19 ++++++++++++++++ components/icons/arrow-right.tsx | 19 ++++++++++++++++ components/icons/chat-bubble.tsx | 7 +++--- components/icons/close.tsx | 17 +++++++++----- components/icons/dining.tsx | 22 +++++++++++++++++++ components/icons/hamburger.tsx | 7 +++--- components/icons/heart.tsx | 7 +++--- components/icons/index.ts | 6 +++-- components/icons/info-circle.tsx | 7 +++--- components/icons/info-outline.tsx | 7 +++--- components/icons/instagram.tsx | 22 ++++++++++++------- components/icons/search.tsx | 7 +++--- 15 files changed, 113 insertions(+), 67 deletions(-) delete mode 100644 components/icons/arrow-back.tsx rename components/icons/{chevron-down.tsx => arrow-down.tsx} (57%) create mode 100644 components/icons/arrow-left.tsx create mode 100644 components/icons/arrow-right.tsx create mode 100644 components/icons/dining.tsx diff --git a/app/_components/Page1.tsx b/app/_components/Page1.tsx index 07cc9b8..d398b07 100644 --- a/app/_components/Page1.tsx +++ b/app/_components/Page1.tsx @@ -93,12 +93,12 @@ function BoardCard({ item, onPress }: BoardCardProps) { - + {item.likeCount} - + {item.commentCount} diff --git a/components/icons/arrow-back.tsx b/components/icons/arrow-back.tsx deleted file mode 100644 index 3d9f125..0000000 --- a/components/icons/arrow-back.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import { cssInterop } from 'nativewind'; -import Svg, { Path } from 'react-native-svg'; - -const StyledSvg = cssInterop(Svg, { - className: { target: 'style', nativeStyleToProp: { color: true } }, -}); - -interface ArrowBackIconProps { - width?: number; - height?: number; - className?: string; -} - -export default function ArrowBackIcon({ width = 20, height = 20, className = 'text-[#000]' }: ArrowBackIconProps) { - return ( - - - - ); -} diff --git a/components/icons/chevron-down.tsx b/components/icons/arrow-down.tsx similarity index 57% rename from components/icons/chevron-down.tsx rename to components/icons/arrow-down.tsx index 0d06e54..8dc5f21 100644 --- a/components/icons/chevron-down.tsx +++ b/components/icons/arrow-down.tsx @@ -5,15 +5,14 @@ const StyledSvg = cssInterop(Svg, { className: { target: 'style', nativeStyleToProp: { color: true } }, }); -interface ChevronDownIconProps { - width?: number; - height?: number; +interface ArrowDownIconProps { + size?: number; className?: string; } -export default function ChevronDownIcon({ width = 24, height = 24, className = 'text-[#000]' }: ChevronDownIconProps) { +export default function ArrowDownIcon({ size = 24, className = 'text-[#000]' }: ArrowDownIconProps) { return ( - + ); diff --git a/components/icons/arrow-left.tsx b/components/icons/arrow-left.tsx new file mode 100644 index 0000000..ae3bd98 --- /dev/null +++ b/components/icons/arrow-left.tsx @@ -0,0 +1,19 @@ +import { cssInterop } from 'nativewind'; +import Svg, { Path } from 'react-native-svg'; + +const StyledSvg = cssInterop(Svg, { + className: { target: 'style', nativeStyleToProp: { color: true } }, +}); + +interface ArrowLeftIconProps { + size?: number; + className?: string; +} + +export default function ArrowLeftIcon({ size = 24, className = 'text-[#000]' }: ArrowLeftIconProps) { + return ( + + + + ); +} diff --git a/components/icons/arrow-right.tsx b/components/icons/arrow-right.tsx new file mode 100644 index 0000000..ae10905 --- /dev/null +++ b/components/icons/arrow-right.tsx @@ -0,0 +1,19 @@ +import { cssInterop } from 'nativewind'; +import Svg, { Path } from 'react-native-svg'; + +const StyledSvg = cssInterop(Svg, { + className: { target: 'style', nativeStyleToProp: { color: true } }, +}); + +interface ArrowRightIconProps { + size?: number; + className?: string; +} + +export default function ArrowRightIcon({ size = 24, className = 'text-[#000]' }: ArrowRightIconProps) { + return ( + + + + ); +} diff --git a/components/icons/chat-bubble.tsx b/components/icons/chat-bubble.tsx index 04ea8d7..461e6eb 100644 --- a/components/icons/chat-bubble.tsx +++ b/components/icons/chat-bubble.tsx @@ -6,14 +6,13 @@ const StyledSvg = cssInterop(Svg, { }); interface ChatBubbleIconProps { - width?: number; - height?: number; + size?: number; className?: string; } -export default function ChatBubbleIcon({ width = 24, height = 24, className = 'text-[#000]' }: ChatBubbleIconProps) { +export default function ChatBubbleIcon({ size = 24, className = 'text-[#000]' }: ChatBubbleIconProps) { return ( - + - + + - + ); } diff --git a/components/icons/dining.tsx b/components/icons/dining.tsx new file mode 100644 index 0000000..0f6f9cf --- /dev/null +++ b/components/icons/dining.tsx @@ -0,0 +1,22 @@ +import { cssInterop } from 'nativewind'; +import Svg, { Path } from 'react-native-svg'; + +const StyledSvg = cssInterop(Svg, { + className: { target: 'style', nativeStyleToProp: { color: true } }, +}); + +interface DiningIconProps { + size?: number; + className?: string; +} + +export default function DiningIcon({ size = 24, className = 'text-[#000]' }: DiningIconProps) { + return ( + + + + ); +} diff --git a/components/icons/hamburger.tsx b/components/icons/hamburger.tsx index 78400fe..70fe119 100644 --- a/components/icons/hamburger.tsx +++ b/components/icons/hamburger.tsx @@ -6,14 +6,13 @@ const StyledSvg = cssInterop(Svg, { }); interface HamburgerIconProps { - width?: number; - height?: number; + size?: number; className?: string; } -export default function HamburgerIcon({ width = 24, height = 24, className = 'text-[#17171B]' }: HamburgerIconProps) { +export default function HamburgerIcon({ size = 24, className = 'text-[#17171B]' }: HamburgerIconProps) { return ( - + + + + + - + - + ); } diff --git a/components/icons/search.tsx b/components/icons/search.tsx index a6a270f..3263440 100644 --- a/components/icons/search.tsx +++ b/components/icons/search.tsx @@ -6,14 +6,13 @@ const StyledSvg = cssInterop(Svg, { }); interface SearchIconProps { - width?: number; - height?: number; + size?: number; className?: string; } -export default function SearchIcon({ width = 24, height = 24, className = 'text-[#17171B]' }: SearchIconProps) { +export default function SearchIcon({ size = 24, className = 'text-[#17171B]' }: SearchIconProps) { return ( - +