From 27a71d473df89aac41653338eacea2fc20c30586 Mon Sep 17 00:00:00 2001 From: Afonso Santos Date: Sat, 14 Oct 2023 17:34:22 +0100 Subject: [PATCH] add dropdown --- .../landing/Header/NavBar/NavBar.tsx | 47 ++++++++++++++----- .../ui/components/landing/Header/config.ts | 2 +- 2 files changed, 36 insertions(+), 13 deletions(-) diff --git a/packages/ui/components/landing/Header/NavBar/NavBar.tsx b/packages/ui/components/landing/Header/NavBar/NavBar.tsx index 3f57a834..d7c7cc92 100644 --- a/packages/ui/components/landing/Header/NavBar/NavBar.tsx +++ b/packages/ui/components/landing/Header/NavBar/NavBar.tsx @@ -1,8 +1,8 @@ import { useState } from "react"; import Link from "next/link"; -import { Grid } from "antd"; +import { Grid, Dropdown, Menu, Space } from "antd"; -import { DashboardOutlined, LogoutOutlined } from "@ant-design/icons"; +import { DownOutlined, DashboardOutlined, LogoutOutlined } from "@ant-design/icons"; import { ThemeToggle, useAuth } from "@coderdojobraga/ui"; import MobileNavBar from "../MobileNavBar/MobileNavBar"; @@ -12,6 +12,7 @@ import { getUserInitials } from "../utils"; import styles from "./style.module.css"; + const { useBreakpoint } = Grid; interface EntryProps { @@ -28,10 +29,28 @@ const Entry = ({ href, text }: EntryProps) => ( interface UserDropDownProps { logout: () => void; } +const EventosDropDown = () => ( + +); + const UserDropDown = ({ logout }: UserDropDownProps) => (