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

View File

@ -10,7 +10,7 @@ import {
type Column, type Column,
} from '@/components/shared'; } from '@/components/shared';
import { ViewModuleModal, NewModuleModal } from '@/components/superadmin'; 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 { moduleService } from '@/services/module-service';
import type { Module } from '@/types/module'; import type { Module } from '@/types/module';

View File

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

View File

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

View File

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

View File

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

View File

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