From 035f7fa8cd5467aeac7a860830bfa40ec282d49e Mon Sep 17 00:00:00 2001 From: arraysid Date: Tue, 27 May 2025 04:11:18 +0700 Subject: [PATCH] feat: replace Image component with LogoSimple in Header and update Logo component to accept props --- apps/landing/src/app/(public)/_components/header.tsx | 10 ++-------- apps/landing/src/app/_components/logo.tsx | 6 ++++-- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/apps/landing/src/app/(public)/_components/header.tsx b/apps/landing/src/app/(public)/_components/header.tsx index a417350..b7b47e4 100644 --- a/apps/landing/src/app/(public)/_components/header.tsx +++ b/apps/landing/src/app/(public)/_components/header.tsx @@ -1,9 +1,9 @@ 'use client'; +import { LogoSimple } from '@/app/_components/logo'; import navigations from '@/data/navigations.json'; import { Button } from '@components'; import { cn } from '@utils'; -import Image from 'next/image'; import Link from 'next/link'; import { useRouter } from 'next/navigation'; import { useEffect, useState } from 'react'; @@ -36,13 +36,7 @@ export function Header() {
- IMPHNEN +
diff --git a/apps/landing/src/app/_components/logo.tsx b/apps/landing/src/app/_components/logo.tsx index e9963a5..d7fdfa7 100644 --- a/apps/landing/src/app/_components/logo.tsx +++ b/apps/landing/src/app/_components/logo.tsx @@ -1,6 +1,7 @@ -export function Logo() { +export function Logo(props: React.SVGProps) { return ( ) { return (