diff --git a/new_dashboard_ui.patch b/new_dashboard_ui.patch new file mode 100644 index 00000000..b95493ae --- /dev/null +++ b/new_dashboard_ui.patch @@ -0,0 +1,405 @@ +diff --git a/home/user/static/js/components/dashboard-layout.tsx b/home/user/static/js/components/dashboard-layout.tsx +new file mode 100644 +index 0000000..f114f4e +--- /dev/null ++++ b/home/user/static/js/components/dashboard-layout.tsx +@@ -0,0 +1,72 @@ ++ ++"use client" ++ ++import { useState } from 'react' ++import { Button } from "@/components/ui/button" ++import { MoonIcon, SunIcon } from "@radix-ui/react-icons" ++import { useTheme } from "next-themes" ++import { SidebarNav } from './sidebar-nav' ++import { UserProfileDropdown } from './user-profile-dropdown' ++ ++export function ThemeToggle() { ++ const { setTheme, theme } = useTheme() ++ ++ return ( ++ ++ ) ++} ++ ++export default function DashboardLayout({ children }) { ++ const [isSidebarOpen, setIsSidebarOpen] = useState(true) ++ ++ return ( ++
John Doe
++++ john.doe@example.com ++
++{{ total_orders }}
+-${{ total_spent|floatformat:2 }}
+-{{ product_count }}
+-Order ID | +-Product | +-Quantity | +-Total Price | +-Status | +-
---|---|---|---|---|
{{ order.id }} | +-{{ order.product.name }} | +-{{ order.quantity }} | +-${{ order.total_price }} | +-{{ order.get_status_display }} | +-
You have no recent orders.
+- {% endif %} +-