diff --git a/src/components/layout/DashboardLayout.tsx b/src/components/layout/DashboardLayout.tsx index 5abf344..1899313 100644 --- a/src/components/layout/DashboardLayout.tsx +++ b/src/components/layout/DashboardLayout.tsx @@ -17,6 +17,7 @@ import { useMediaQuery, Badge, Collapse, + Divider, } from '@mui/material'; import { SearchRounded, diff --git a/src/pages/ContactListPage.tsx b/src/pages/ContactListPage.tsx index c387a53..a8d4fa1 100644 --- a/src/pages/ContactListPage.tsx +++ b/src/pages/ContactListPage.tsx @@ -19,7 +19,6 @@ import { InputLabel, Select, MenuItem, - IconButton, Menu, ListItemIcon, ListItemText @@ -39,16 +38,9 @@ import { CloudDownload, VerifiedUser, Favorite, - CheckCircle, - Schedule, - Send, - ArrowUpward, - ArrowDownward, - FilterList, Sort, SortByAlpha, Business, - AccessTime, FamilyRestroom, Person, Work, @@ -69,7 +61,6 @@ const ContactListPage = () => { const [groupFilter, setGroupFilter] = useState('all'); const [sortBy, setSortBy] = useState('name'); const [sortDirection, setSortDirection] = useState<'asc' | 'desc'>('asc'); - const [filterMenuAnchor, setFilterMenuAnchor] = useState(null); const [sortMenuAnchor, setSortMenuAnchor] = useState(null); const theme = useTheme(); const navigate = useNavigate(); @@ -210,45 +201,13 @@ const ContactListPage = () => { }; - const getNaoStatusIndicator = (contact: Contact) => { - switch (contact.naoStatus) { - case 'member': - return { - icon: , - label: 'NAO Member', - color: theme.palette.success.main, - bgColor: alpha(theme.palette.success.main, 0.08), - borderColor: alpha(theme.palette.success.main, 0.2) - }; - case 'invited': - return { - icon: , - label: 'Invited', - color: theme.palette.warning.main, - bgColor: alpha(theme.palette.warning.main, 0.08), - borderColor: alpha(theme.palette.warning.main, 0.2) - }; - default: - return null; - } - }; - const handleInviteToNao = (contact: Contact) => { - // Navigate to invitation page with contact pre-filled - navigate(`/invite?inviteeName=${encodeURIComponent(contact.name)}&inviteeEmail=${encodeURIComponent(contact.email)}`); - }; - const handleFilterClick = (event: React.MouseEvent) => { - setFilterMenuAnchor(event.currentTarget); - }; const handleSortClick = (event: React.MouseEvent) => { setSortMenuAnchor(event.currentTarget); }; - const handleFilterClose = () => { - setFilterMenuAnchor(null); - }; const handleSortClose = () => { setSortMenuAnchor(null); diff --git a/src/pages/NotificationsPage.tsx b/src/pages/NotificationsPage.tsx index 6144bf3..03534ba 100644 --- a/src/pages/NotificationsPage.tsx +++ b/src/pages/NotificationsPage.tsx @@ -2,7 +2,6 @@ import { useState, useEffect } from 'react'; import { Typography, Box, - Card, Button, Chip, Avatar, @@ -228,15 +227,12 @@ const NotificationsPage = () => { {/* Notifications List */} - - + {isLoading ? ( @@ -405,7 +401,7 @@ const NotificationsPage = () => { )} - + ); };