diff --git a/ui/litellm-dashboard/src/app/globals.css b/ui/litellm-dashboard/src/app/globals.css index 12ff7cd519f..30f3a326bb4 100644 --- a/ui/litellm-dashboard/src/app/globals.css +++ b/ui/litellm-dashboard/src/app/globals.css @@ -4,7 +4,7 @@ :root { --foreground-rgb: 0, 0, 0; - --background-start-rgb: 214, 219, 220; + --background-start-rgb: 255, 255, 255; --background-end-rgb: 255, 255, 255; } diff --git a/ui/litellm-dashboard/src/app/page.tsx b/ui/litellm-dashboard/src/app/page.tsx index f475c5e316a..f806050c6be 100644 --- a/ui/litellm-dashboard/src/app/page.tsx +++ b/ui/litellm-dashboard/src/app/page.tsx @@ -4,8 +4,7 @@ import UserDashboard from "../components/user_dashboard"; const CreateKeyPage = () => { return ( Loading...}> -
- +
diff --git a/ui/litellm-dashboard/src/components/navbar.tsx b/ui/litellm-dashboard/src/components/navbar.tsx index ebba1e20989..75b5ada9be4 100644 --- a/ui/litellm-dashboard/src/components/navbar.tsx +++ b/ui/litellm-dashboard/src/components/navbar.tsx @@ -1,7 +1,20 @@ +"use client"; + import Link from 'next/link'; import Image from 'next/image' import React, { useState } from 'react'; -function Navbar() { +import { useSearchParams } from "next/navigation"; +import { Button, Text, Metric,Title, TextInput, Grid, Col } from "@tremor/react"; + +// Define the props type +interface NavbarProps { + userID: string | null; +} +const Navbar: React.FC = ({ userID }) => { + const searchParams = useSearchParams(); + const token = searchParams.get("token"); + console.log("User ID:", userID); + return (
- - - - - - +
+ ) } diff --git a/ui/litellm-dashboard/src/components/networking.tsx b/ui/litellm-dashboard/src/components/networking.tsx index 6384005c1af..7859c6a8cd9 100644 --- a/ui/litellm-dashboard/src/components/networking.tsx +++ b/ui/litellm-dashboard/src/components/networking.tsx @@ -3,7 +3,8 @@ */ import { message } from 'antd'; -const proxyBaseUrl = null +// const proxyBaseUrl = null; +const proxyBaseUrl = "http://localhost:4000" // http://localhost:4000 export const keyCreateCall = async ( accessToken: string, diff --git a/ui/litellm-dashboard/src/components/user_dashboard.tsx b/ui/litellm-dashboard/src/components/user_dashboard.tsx index 4a0a72e189d..db09cd8d1b7 100644 --- a/ui/litellm-dashboard/src/components/user_dashboard.tsx +++ b/ui/litellm-dashboard/src/components/user_dashboard.tsx @@ -5,10 +5,12 @@ import { Grid, Col, Card, Text } from "@tremor/react"; import CreateKey from "./create_key_button"; import ViewKeyTable from "./view_key_table"; import EnterProxyUrl from "./enter_proxy_url"; +import Navbar from "./navbar"; import { useSearchParams } from "next/navigation"; import { jwtDecode } from "jwt-decode"; -const proxyBaseUrl = null +// const proxyBaseUrl = null; +const proxyBaseUrl = "http://localhost:4000" // http://localhost:4000 const UserDashboard = () => { const [data, setData] = useState(null); // Keep the initialization of state here @@ -67,7 +69,11 @@ const UserDashboard = () => { return ( - +
+ + { /> +
+ ); };