From f95ee80e15da19db613046f56c499263797219b3 Mon Sep 17 00:00:00 2001 From: HenriqueSSan Date: Sun, 1 Jan 2023 20:20:54 -0300 Subject: [PATCH] refactor(header): created more split components --- src/template/Header/index.tsx | 69 ++++++++++++++++++++--------------- 1 file changed, 39 insertions(+), 30 deletions(-) diff --git a/src/template/Header/index.tsx b/src/template/Header/index.tsx index 85f97d3..04db0ef 100644 --- a/src/template/Header/index.tsx +++ b/src/template/Header/index.tsx @@ -21,6 +21,44 @@ export function Search({ ...props }: SearchProps) { ) } +interface ContainerBottomProps { + isOpen: boolean + handleClose: () => void +} + +const ContainerBottom = ({ isOpen, handleClose }: ContainerBottomProps) => { + return ( +
+
+
+ Entrar + +
+ +
    + {['Cursos', 'Saiba Mais', 'Institucionais'].map((item, index) => { + return ( +
  • + {item} +
  • + ) + })} +
+
+
+ ) +} + export const Header = () => { const [isOpenMenu, setIsOpenMenu] = useState(false) @@ -75,36 +113,7 @@ export const Header = () => { -
-
-
- Entrar - -
- - -
-
+ )