mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-05 10:56:28 +00:00
Clean up unused assignment imports
Remove an unused initials helper from the assignment detail component and prune unused lucide-react imports from the assignment grid. This keeps the codebase cleaner and avoids dead code while preserving the current UI behavior.
This commit is contained in:
-10
@@ -447,16 +447,6 @@ function Fact({ label, value }: { label: string; value: string }) {
|
||||
);
|
||||
}
|
||||
|
||||
function initials(name?: string) {
|
||||
return (name ?? '')
|
||||
.split(' ')
|
||||
.map(n => n[0])
|
||||
.filter(Boolean)
|
||||
.slice(0, 2)
|
||||
.join('')
|
||||
.toUpperCase();
|
||||
}
|
||||
|
||||
function PartyRow({ role, party, href }: { role: string; party?: { name?: string; photo?: string; description?: string | null; code?: string } | null; href?: string }) {
|
||||
const fallback = role.toLowerCase().includes('end user') ? END_USER_FALLBACK_IMAGE : CLIENT_FALLBACK_IMAGE;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
Tooltip, TooltipContent, TooltipTrigger,
|
||||
} from '@/components/ui/tooltip';
|
||||
import { LazyImage } from '@/components/ui/lazy-image';
|
||||
import { Briefcase, Calendar, ExternalLink, MoreVertical, Building, FolderGit2, FileText, BuildingComplex } from 'lucide-react';
|
||||
import { Briefcase, Calendar, ExternalLink, MoreVertical, FolderGit2, FileText } from 'lucide-react';
|
||||
import Link from 'next/link';
|
||||
import BadgeStatus from '@/components/ui/badge-status';
|
||||
import { formatAssignmentDate } from './AssignmentList';
|
||||
|
||||
Reference in New Issue
Block a user