From a984a393debd6aff97830ea75ec592d52a440bd8 Mon Sep 17 00:00:00 2001 From: MinSeobKim Date: Thu, 16 Nov 2023 00:31:32 +0900 Subject: [PATCH 01/10] =?UTF-8?q?Feat=20:=20Header=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Components/Common/Header.tsx | 30 ++++++++++++++++--- .../Open/ChatList/ChatItem/ChatItem.tsx | 10 +++---- Components/Search/SearchOpenChat.tsx | 18 ++++------- Components/Wrapper.tsx | 2 +- app/search/page.tsx | 2 ++ 5 files changed, 39 insertions(+), 23 deletions(-) diff --git a/Components/Common/Header.tsx b/Components/Common/Header.tsx index 5e90212..11772fa 100644 --- a/Components/Common/Header.tsx +++ b/Components/Common/Header.tsx @@ -4,17 +4,34 @@ import Image from 'next/image'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import React from 'react'; +import icon_left from '@/public/icon_arrow_left.svg'; const Header = () => { const pathname = usePathname(); let headerInfo = friends; if (pathname === '/open') headerInfo = open; else if (pathname === '/private') headerInfo = privates; + else if (pathname === '/search') headerInfo = search; return ( -
+
+ {headerInfo === search && ( + + 뒤로가기 + + )} {headerInfo.Heading} - + {headerInfo !== search && }
); }; @@ -38,8 +55,8 @@ const UsersUl = () => { const OpenUl = () => { return ( -