refactor: remove unused UI components and icons across multiple pages
This commit is contained in:
parent
873d5af758
commit
421aaa1b87
@ -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';
|
||||||
|
|||||||
@ -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';
|
||||||
|
|
||||||
|
|||||||
@ -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';
|
||||||
|
|||||||
@ -4,7 +4,6 @@ import {
|
|||||||
FileCheck,
|
FileCheck,
|
||||||
Briefcase,
|
Briefcase,
|
||||||
FileText,
|
FileText,
|
||||||
GraduationCap,
|
|
||||||
Users,
|
Users,
|
||||||
Bell,
|
Bell,
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
|
|||||||
@ -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";
|
||||||
|
|||||||
@ -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';
|
||||||
|
|||||||
@ -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";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user