refactor: remove unused UI components and icons across multiple pages

This commit is contained in:
Yashwin 2026-04-06 19:16:32 +05:30
parent 873d5af758
commit 421aaa1b87
7 changed files with 5 additions and 8 deletions

View File

@ -1,7 +1,6 @@
import { useState, useRef, useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
import { Search, ChevronDown, Menu, LogOut, User, ChevronRight } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { ChevronDown, Menu, LogOut, User, ChevronRight } from 'lucide-react';
import { useAppDispatch, useAppSelector } from '@/hooks/redux-hooks';
import { logoutAsync } from '@/store/authSlice';
import { cn } from '@/lib/utils';

View File

@ -10,7 +10,7 @@ import {
type Column,
} from '@/components/shared';
import { ViewModuleModal, NewModuleModal } from '@/components/superadmin';
import { Plus, Download, ArrowUpDown } from 'lucide-react';
import { Plus, ArrowUpDown } from 'lucide-react';
import { moduleService } from '@/services/module-service';
import type { Module } from '@/types/module';

View File

@ -12,7 +12,7 @@ import {
type Column,
} from '@/components/shared';
// Note: NewTenantModal, ViewTenantModal, EditTenantModal are now in @/components/superadmin (commented out - using wizard/details/edit pages instead)
import { Plus, Download, ArrowUpDown } from 'lucide-react';
import { Plus, ArrowUpDown } from 'lucide-react';
import { useNavigate } from 'react-router-dom';
import { tenantService } from '@/services/tenant-service';
import type { Tenant } from '@/types/tenant';

View File

@ -4,7 +4,6 @@ import {
FileCheck,
Briefcase,
FileText,
GraduationCap,
Users,
Bell,
} from "lucide-react";

View File

@ -24,7 +24,6 @@ import {
Eye,
Pencil,
Trash2,
SlidersHorizontal,
ChevronDown,
} from "lucide-react";
import { Layout } from "@/components/layout/Layout";

View File

@ -13,7 +13,7 @@ import {
FilterDropdown,
type Column,
} from '@/components/shared';
import { Plus, Download, ArrowUpDown } from 'lucide-react';
import { Plus, ArrowUpDown } from 'lucide-react';
import { roleService } from '@/services/role-service';
import type { Role, CreateRoleRequest, UpdateRoleRequest } from '@/types/role';
import { showToast } from '@/utils/toast';

View File

@ -14,7 +14,7 @@ import {
FilterDropdown,
type Column,
} from "@/components/shared";
import { Plus, Download, ArrowUpDown } from "lucide-react";
import { Plus, ArrowUpDown } from "lucide-react";
import { userService } from "@/services/user-service";
import type { User } from "@/types/user";
import { showToast } from "@/utils/toast";