Fix ESLint errors: Add missing imports and remove unused variables
This commit is contained in:
parent
8c659dfa20
commit
ce3773172a
5 changed files with 3 additions and 7 deletions
|
|
@ -12,7 +12,7 @@ import {
|
||||||
} from '@heroicons/react/24/outline';
|
} from '@heroicons/react/24/outline';
|
||||||
|
|
||||||
const Layout = () => {
|
const Layout = () => {
|
||||||
const { user, logout, isSuperAdmin, isTrainer, isTrainee } = useAuth();
|
const { user, logout, isSuperAdmin } = useAuth();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
const [sidebarOpen, setSidebarOpen] = useState(false);
|
const [sidebarOpen, setSidebarOpen] = useState(false);
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,7 @@ import {
|
||||||
ClockIcon,
|
ClockIcon,
|
||||||
UserIcon,
|
UserIcon,
|
||||||
StarIcon,
|
StarIcon,
|
||||||
CurrencyDollarIcon,
|
|
||||||
BookOpenIcon,
|
BookOpenIcon,
|
||||||
CheckCircleIcon,
|
|
||||||
} from '@heroicons/react/24/outline';
|
} from '@heroicons/react/24/outline';
|
||||||
import LoadingSpinner from '../components/LoadingSpinner';
|
import LoadingSpinner from '../components/LoadingSpinner';
|
||||||
import toast from 'react-hot-toast';
|
import toast from 'react-hot-toast';
|
||||||
|
|
|
||||||
|
|
@ -5,16 +5,16 @@ import { useAuth } from '../contexts/AuthContext';
|
||||||
import { coursesAPI } from '../services/api';
|
import { coursesAPI } from '../services/api';
|
||||||
import {
|
import {
|
||||||
MagnifyingGlassIcon,
|
MagnifyingGlassIcon,
|
||||||
FunnelIcon,
|
|
||||||
PlusIcon,
|
PlusIcon,
|
||||||
StarIcon,
|
StarIcon,
|
||||||
ClockIcon,
|
ClockIcon,
|
||||||
UserIcon,
|
UserIcon,
|
||||||
|
AcademicCapIcon,
|
||||||
} from '@heroicons/react/24/outline';
|
} from '@heroicons/react/24/outline';
|
||||||
import LoadingSpinner from '../components/LoadingSpinner';
|
import LoadingSpinner from '../components/LoadingSpinner';
|
||||||
|
|
||||||
const Courses = () => {
|
const Courses = () => {
|
||||||
const { user, isTrainer, isSuperAdmin } = useAuth();
|
const { isTrainer, isSuperAdmin } = useAuth();
|
||||||
const [search, setSearch] = useState('');
|
const [search, setSearch] = useState('');
|
||||||
const [category, setCategory] = useState('');
|
const [category, setCategory] = useState('');
|
||||||
const [level, setLevel] = useState('');
|
const [level, setLevel] = useState('');
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ import {
|
||||||
AcademicCapIcon,
|
AcademicCapIcon,
|
||||||
UsersIcon,
|
UsersIcon,
|
||||||
ClockIcon,
|
ClockIcon,
|
||||||
CurrencyDollarIcon,
|
|
||||||
ChartBarIcon,
|
ChartBarIcon,
|
||||||
UserGroupIcon,
|
UserGroupIcon,
|
||||||
BookOpenIcon,
|
BookOpenIcon,
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ import {
|
||||||
PencilIcon,
|
PencilIcon,
|
||||||
TrashIcon,
|
TrashIcon,
|
||||||
MagnifyingGlassIcon,
|
MagnifyingGlassIcon,
|
||||||
FunnelIcon,
|
|
||||||
} from '@heroicons/react/24/outline';
|
} from '@heroicons/react/24/outline';
|
||||||
import LoadingSpinner from '../components/LoadingSpinner';
|
import LoadingSpinner from '../components/LoadingSpinner';
|
||||||
import toast from 'react-hot-toast';
|
import toast from 'react-hot-toast';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue