diff --git a/src/app/page.tsx b/src/app/page.tsx index f720bfe..a9476d5 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -57,15 +57,15 @@ export default function LandingPage() { testimonials={[ { name: "Miraj Rahman", handle: "Local Food Lover", testimonial: "Fresh and tasty dishes with great flavors and friendly service. Highly recommend the dumplings and chow mein!", rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/content-businessman-smiling_74855-3248.jpg?_wi=1" + imageSrc: "http://img.b2bpic.net/free-photo/content-businessman-smiling_74855-3248.jpg" }, { name: "Sheikh Kabir", handle: "Regular Customer", testimonial: "Amazing food and excellent service. This place is a gem in the Bronx!", rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/front-view-business-woman-suit_23-2148603018.jpg?_wi=1" + imageSrc: "http://img.b2bpic.net/free-photo/front-view-business-woman-suit_23-2148603018.jpg" }, { name: "Saqib Khan", handle: "Community Member", testimonial: "Best Bangladeshi and Chinese food in the Bronx. Clean place and very friendly staff.", rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/happy-expression_1194-1704.jpg?_wi=1" + imageSrc: "http://img.b2bpic.net/free-photo/happy-expression_1194-1704.jpg" } ]} testimonialRotationInterval={5000} @@ -158,22 +158,22 @@ export default function LandingPage() { ); -} \ No newline at end of file +} diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..11ceeac 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,35 @@ -"use client"; +import React, { SVGProps } from 'react'; -import { memo } from "react"; -import useSvgTextLogo from "./useSvgTextLogo"; -import { cls } from "@/lib/utils"; - -interface SvgTextLogoProps { - logoText: string; - adjustHeightFactor?: number; - verticalAlign?: "top" | "center"; +interface SvgTextLogoProps extends SVGProps { + text?: string; className?: string; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); - +const SvgTextLogo: React.FC = ({ + text = 'Logo', + className = '', + ...props +}) => { return ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo;