show delivered time on campaigns

This commit is contained in:
nithur-m
2025-09-27 11:29:43 +05:30
parent 524defac8a
commit 977be220c7
@@ -106,6 +106,14 @@ export default function Index() {
)}
</p>
</div>
{c.status !== "DRAFT" && c.tasks.length === 0 && (
<div>
<label className={"text-xs font-medium text-neutral-500"}>Delivered at</label>
<p className="mt-1 truncate text-sm text-neutral-500">{new Date(c.delivered!).toLocaleTimeString()}</p>
<p className="mt-1 truncate text-sm text-neutral-500">{new Date(c.delivered!).toDateString()}</p>
</div>
)}
</div>
</div>
</div>