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:
Ichsan Kurniawan
2026-10-07 14:08:11 +07:00
parent 200ef0571c
commit 69f680bc24
2 changed files with 1 additions and 11 deletions
@@ -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';