From 4139b6a137c4971505cb6f7b686c9487813d8884 Mon Sep 17 00:00:00 2001 From: Taek Been Nam Date: Tue, 14 May 2024 14:07:08 -0400 Subject: [PATCH] add fallback avatar on header component --- app/(main)/components/heroSection/heroSection.tsx | 4 ++-- public/illustrations/avatar.svg | 1 + shared/organisms/header/header.tsx | 6 +++++- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 public/illustrations/avatar.svg diff --git a/app/(main)/components/heroSection/heroSection.tsx b/app/(main)/components/heroSection/heroSection.tsx index 5c34d42..0a64a5b 100644 --- a/app/(main)/components/heroSection/heroSection.tsx +++ b/app/(main)/components/heroSection/heroSection.tsx @@ -16,9 +16,9 @@ async function HeroSection() {
- barber image + barber image - +

\ No newline at end of file diff --git a/shared/organisms/header/header.tsx b/shared/organisms/header/header.tsx index 60bfa98..02a6bf3 100644 --- a/shared/organisms/header/header.tsx +++ b/shared/organisms/header/header.tsx @@ -1,6 +1,7 @@ "use client"; import React, { useEffect, useState } from "react"; +import Image from "next/image"; import { LoginLink, LogoutLink } from "@kinde-oss/kinde-auth-nextjs/components"; import { CalendarIcon, LogOutIcon } from "lucide-react"; import { Container } from "@/shared/templates/container"; @@ -13,6 +14,7 @@ import { PopoverContent, PopoverTrigger, } from "@/shared/molecules/popover"; +import avatar from "@/public/illustrations/avatar.svg"; interface HeaderProps { photo?: string | null; @@ -54,7 +56,9 @@ function Header({ photo, isAuthenticated }: HeaderProps) { - TN + + avatar +