refactor: clean up imports and remove unused components

- Removed unused imports and components across various files to streamline the codebase.
- Simplified the structure of components such as AlbumImages, AlbumPeople, and others by eliminating unnecessary dependencies.
- Enhanced overall readability and maintainability of the code.
This commit is contained in:
Varun Raj committed 2025-03-25 22:31:40 +05:30
1 parent 0160b37f84
commit ea51071538
43 files changed
+52 -121

No files matched your search

-1
View File
@@ -2,7 +2,6 @@ import { listAlbums } from '@/handlers/api/album.handler';
import { IAlbum } from '@/types/album';
import React, { useEffect, useState } from 'react'
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../ui/select';
import { X } from 'lucide-react';
interface IAlbumDropdownProps {
albumIds?: string[];
-2
View File
@@ -1,5 +1,3 @@
import { useConfig } from '@/contexts/ConfigContext';
import { Link } from 'lucide-react';
import React from 'react'
interface ErrorBlockProps {
-1
View File
@@ -1,4 +1,3 @@
import { Button } from '@/components/ui/button'
import React from 'react'
interface FloatingBarProps {
+1 -17
View File
@@ -1,23 +1,7 @@
import React, { useMemo } from "react";
import Link from "next/link";
import {
Home,
LineChart,
Menu,
Package,
Package2,
ShoppingCart,
Users,
} from "lucide-react";
import { Badge } from "@/components/ui/badge";
import { Menu } from "lucide-react";
import { Button } from "@/components/ui/button";
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "@/components/ui/card";
import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet";
import Head from "next/head";
import { sidebarNavs } from "@/config/constants/sidebarNavs";
-1
View File
@@ -2,7 +2,6 @@ import React, { useCallback, useMemo, useState } from 'react'
import { IPerson } from '@/types/person';
import { cn } from '@/lib/utils';
import LazyImage from '../ui/lazy-image';
import { PERSON_THUBNAIL_PATH } from '@/config/routes';
import { Input } from '../ui/input';
interface PeopleListProps {
@@ -9,7 +9,6 @@ import { Label } from '@radix-ui/react-label';
import { Switch } from '../ui/switch';
import { Select, SelectValue, SelectContent, SelectItem, SelectTrigger } from '../ui/select';
interface ShareAssetsTriggerProps {
filters: ShareLinkFilters
buttonProps?: ButtonProps
+1 -2
View File
@@ -1,5 +1,4 @@
import React from "react";
import { Button } from "../ui/button";
import { useTheme } from "next-themes";
import { Moon, Sun } from "lucide-react";
import { cn } from "@/lib/utils";
@@ -15,7 +14,7 @@ export default function ThemeSwitcher() {
<button
onClick={toggleTheme}
className={cn(
"p-1 rounded-md rounded-full transition-all duration-300 border border-primary text-primary",
"p-1 rounded-full transition-all duration-300 border border-primary text-primary",
)}
>
{theme === "light" ? <Moon size={10} /> : <Sun size={10} />}