diff --git a/frontend/src/components/Labels/Label.tsx b/frontend/src/components/Labels/Label.tsx index 540adec..9086264 100644 --- a/frontend/src/components/Labels/Label.tsx +++ b/frontend/src/components/Labels/Label.tsx @@ -10,10 +10,10 @@ import { Scale as ScaleIcon, LocalHospital as MedicalIcon, AttachMoney as DollarIcon, - Briefcase as BriefcaseIcon, + BusinessCenter as BriefcaseIcon, Description as DocumentIcon, Label as LabelIcon, - Bug as BugIcon, + BugReport as BugIcon, Build as BuildIcon } from '@mui/icons-material'; diff --git a/frontend/src/components/Labels/LabelCreateDialog.tsx b/frontend/src/components/Labels/LabelCreateDialog.tsx index 5a2c5d3..95f5f4b 100644 --- a/frontend/src/components/Labels/LabelCreateDialog.tsx +++ b/frontend/src/components/Labels/LabelCreateDialog.tsx @@ -13,7 +13,6 @@ import { Paper, Tooltip, } from '@mui/material'; -import { ColorPicker } from '@mui/x-date-pickers/internals'; import { Star as StarIcon, Archive as ArchiveIcon, @@ -23,10 +22,10 @@ import { Scale as ScaleIcon, LocalHospital as MedicalIcon, AttachMoney as DollarIcon, - Briefcase as BriefcaseIcon, + BusinessCenter as BriefcaseIcon, Description as DocumentIcon, Label as LabelIcon, - Bug as BugIcon, + BugReport as BugIcon, Build as BuildIcon, Folder as FolderIcon, Assignment as AssignmentIcon, diff --git a/frontend/src/hooks/useApi.ts b/frontend/src/hooks/useApi.ts index 5531c13..cfeeaa4 100644 --- a/frontend/src/hooks/useApi.ts +++ b/frontend/src/hooks/useApi.ts @@ -1,9 +1,8 @@ -import { useContext } from 'react'; import { api } from '../services/api'; -import { AuthContext } from '../contexts/AuthContext'; +import { useAuth } from '../contexts/AuthContext'; export const useApi = () => { - const { user } = useContext(AuthContext); + const { user } = useAuth(); // Ensure the API instance has the current auth token const token = localStorage.getItem('token');