From c7c10ca85e04c18780396f9bd263cd41bdb36c38 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 28 Mar 2024 19:54:11 -0700 Subject: [PATCH] (fix) ui - clean up username --- .../src/components/navbar.tsx | 34 +++++++++++++++---- 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/ui/litellm-dashboard/src/components/navbar.tsx b/ui/litellm-dashboard/src/components/navbar.tsx index ae27d51d8..662f884ce 100644 --- a/ui/litellm-dashboard/src/components/navbar.tsx +++ b/ui/litellm-dashboard/src/components/navbar.tsx @@ -3,6 +3,8 @@ import Link from "next/link"; import Image from "next/image"; import React, { useState } from "react"; +import type { MenuProps } from 'antd'; +import { Dropdown, Space } from 'antd'; import { useSearchParams } from "next/navigation"; import { Button, @@ -35,6 +37,18 @@ const Navbar: React.FC = ({ const isLocal = process.env.NODE_ENV === "development"; const imageUrl = isLocal ? "http://localhost:4000/get_image" : "/get_image"; + const items: MenuProps['items'] = [ + { + key: '1', + label: ( + <> +

Role: {userRole}

+

ID: {userID}

+ + ), + }, + ]; + return ( ); };