From 1f5393747741d89fadcd0ae00a3d9e25a5d35068 Mon Sep 17 00:00:00 2001 From: Ru Chern Chong Date: Sat, 30 Nov 2024 22:43:48 +0800 Subject: [PATCH] Remove unused component --- app/components/NavMenu.tsx | 274 ------------------------------------- 1 file changed, 274 deletions(-) delete mode 100644 app/components/NavMenu.tsx diff --git a/app/components/NavMenu.tsx b/app/components/NavMenu.tsx deleted file mode 100644 index 66f4cc9..0000000 --- a/app/components/NavMenu.tsx +++ /dev/null @@ -1,274 +0,0 @@ -"use client"; - -import * as React from "react"; -import { useState } from "react"; -import Link from "next/link"; -import { ArrowRight, type LucideIcon, Menu, Search } from "lucide-react"; -import { BrandLogo } from "@/components/BrandLogo"; -import Typography from "@/components/Typography"; -import { UnreleasedFeature } from "@/components/UnreleasedFeature"; -import { - Accordion, - AccordionContent, - AccordionItem, - AccordionTrigger, -} from "@/components/ui/accordion"; -import { Button } from "@/components/ui/button"; -import { Input } from "@/components/ui/input"; -import { - NavigationMenu, - NavigationMenuContent, - NavigationMenuItem, - NavigationMenuLink, - NavigationMenuList, - NavigationMenuTrigger, - navigationMenuTriggerStyle, -} from "@/components/ui/navigation-menu"; -import { ScrollArea } from "@/components/ui/scroll-area"; -import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet"; -import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; -import { FUEL_TYPE_LINKS, VEHICLE_TYPE_LINKS } from "@/config"; -import { cn } from "@/lib/utils"; - -export const NavMenu = () => ( - - - - - - Monthly - - - - - Fuel Types - -
    - {/*
  • */} - {/* */} - {/* */} - {/* */} - {/*
    Monthly
    */} - {/*

    */} - {/* Car registration data for the latest month and previous*/} - {/* months, broken down by fuel type and vehicle type.*/} - {/*

    */} - {/* */} - {/*
    */} - {/*
  • */} - {FUEL_TYPE_LINKS.map(({ label, description, href, icon }) => ( - - {description} - - ))} -
-
-
- - Vehicle Types - -
    - {VEHICLE_TYPE_LINKS.map(({ label, description, href, icon }) => ( - - {description} - - ))} -
-
-
- - - - COE - - - - {/**/} - {/* COE*/} - {/* */} - {/*
    */} - {/* */} - {/* Latest*/} - {/* */} - {/* */} - {/* Historical*/} - {/* */} - {/*
*/} - {/*
*/} - {/*
*/} -
-
-); - -export const DesktopNavMenu = () => ( - -); - -export const MobileNavMenu = () => { - const [isOpen, setIsOpen] = useState(false); - - return ( -
- - - - {/**/} - {/* */} - {/* */} - {/* */} - {/* */} - {/* setIsOpen(false)}*/} - {/* >*/} - {/* */} - {/* */} - {/* */} - {/*
*/} - {/* */} - {/*
*/} - {/* */} - {/* */} - {/*
*/} - {/*
*/} - {/* */} - {/* */} - {/* Cars*/} - {/* COE*/} - {/* */} - {/* */} - {/* */} - {/* setIsOpen(false)}>*/} - {/* */} - {/* Monthly */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* Fuel Type*/} - {/* */} - {/*
*/} - {/* {FUEL_TYPE_LINKS.map(*/} - {/* ({ label, description, href, icon: Icon }) => (*/} - {/* setIsOpen(false)}*/} - {/* >*/} - {/*
*/} - {/* {Icon && }*/} - {/*
{label}
*/} - {/*
*/} - {/* */} - {/* {description}*/} - {/* */} - {/* */} - {/* ),*/} - {/* )}*/} - {/*
*/} - {/*
*/} - {/*
*/} - {/* */} - {/* Vehicle Type*/} - {/* */} - {/*
*/} - {/* {VEHICLE_TYPE_LINKS.map(({ label, href }) => (*/} - {/* setIsOpen(false)}*/} - {/* >*/} - {/* {label}*/} - {/* */} - {/* ))}*/} - {/*
*/} - {/*
*/} - {/*
*/} - {/*
*/} - {/*
*/} - {/* */} - {/* */} - {/* */} - {/* COE*/} - {/* */} - {/* setIsOpen(false)}>*/} - {/* Dashboard*/} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/*
*/} - {/*
*/} - {/*
*/} - {/*
*/} - {/*
*/} - {/*
*/} -
- ); -}; - -const ListItem = React.forwardRef< - React.ElementRef<"a">, - React.ComponentPropsWithoutRef<"a"> & { - title: string; - href: string; - icon?: LucideIcon; - } ->(({ className, title, children, href, icon: Icon, ...props }, ref) => { - return ( -
  • - - - -
    - {Icon && } -
    {title}
    -
    -

    - {children} -

    -
    - -
    -
  • - ); -}); - -ListItem.displayName = "ListItem";