Task card: make client name a clickable link to client detail (opens in new tab)
This commit is contained in:
parent
ad8b03e7ba
commit
9028af2b4e
1 changed files with 8 additions and 1 deletions
|
|
@ -25,6 +25,7 @@ import { CheckSquare, Clock, AlertCircle, MessageSquare, CheckCircle2, RotateCcw
|
|||
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip'
|
||||
import { Input } from '@/components/ui/input'
|
||||
import { formatDate, formatRenewalDate } from '@/lib/utils'
|
||||
import Link from 'next/link'
|
||||
import { AdditionalServiceModal } from '@/components/tasks/additional-service-modal'
|
||||
import { TaskEditModal, type EditableTask } from '@/components/tasks/task-edit-modal'
|
||||
|
||||
|
|
@ -257,7 +258,13 @@ function TaskCard({ task: initial }: { task: Task }) {
|
|||
</h3>
|
||||
</div>
|
||||
{task.client && (
|
||||
<p className="text-[13px] font-medium text-foreground">{task.client.name}</p>
|
||||
<Link
|
||||
href={`/clients/${task.client.id}`}
|
||||
target="_blank"
|
||||
className="text-[13px] font-medium text-foreground hover:underline"
|
||||
>
|
||||
{task.client.name}
|
||||
</Link>
|
||||
)}
|
||||
<div className="flex flex-wrap gap-x-5 gap-y-0.5 text-[13px]">
|
||||
<span><span className="text-muted-foreground">Policy #</span> <span className="text-foreground font-medium">{task.policy?.policyNumber || '—'}</span></span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue