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 ( - +