Fixed empty search prop types

X-Lovable-Edit-ID: edt-294319ce-6713-4725-926b-dcf923141c5a
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-22 18:52:28 +00:00
co-authored by renee-png
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -49,7 +49,7 @@ function PleadingsIndex() {
description="Create Florida pleadings and reuse saved pleadings as templates."
actions={
<Button asChild>
<Link to="/documents/pleading/new" search={{}}>
<Link to="/documents/pleading/new" search={{} as never}>
<Gavel className="h-4 w-4 mr-2" /> New Pleading
</Link>
</Button>
@@ -57,7 +57,7 @@ function PleadingsIndex() {
/>
<div className="grid md:grid-cols-2 gap-4 mb-8">
<Link to="/documents/pleading/new" search={{}}>
<Link to="/documents/pleading/new" search={{} as never}>
<Card className="hover:border-primary/40 transition-colors cursor-pointer h-full">
<CardContent className="p-5 flex items-start gap-3">
<div className="h-10 w-10 rounded-md bg-primary/10 text-primary flex items-center justify-center"><Gavel className="h-5 w-5" /></div>
+4 -4
View File
@@ -187,7 +187,7 @@ function Dashboard() {
<CardContent className="space-y-1">
{recentPayments.length === 0 && <p className="text-sm text-muted-foreground">No payment requests yet.</p>}
{recentPayments.map((p) => (
<Link key={p.id} to="/pay/$id" params={{ id: p.id }} search={{}}
<Link key={p.id} to="/pay/$id" params={{ id: p.id }} search={{} as never}
className="flex items-center justify-between py-2.5 px-2 rounded-md hover:bg-muted/60 -mx-2">
<div className="min-w-0">
<div className="text-sm font-medium truncate">{p.recipient_name}</div>
@@ -230,15 +230,15 @@ function Dashboard() {
</CardHeader>
<CardContent>
<div className="grid grid-cols-3 gap-3">
<Link to="/tasks" search={{}} className="rounded-lg p-4 bg-amber-500/10 hover:opacity-80 transition-opacity">
<Link to="/tasks" search={{} as never} className="rounded-lg p-4 bg-amber-500/10 hover:opacity-80 transition-opacity">
<div className="text-xs text-muted-foreground">Due today</div>
<div className="font-serif text-2xl">{myTasks.dueToday}</div>
</Link>
<Link to="/tasks" search={{}} className="rounded-lg p-4 bg-destructive/10 hover:opacity-80 transition-opacity">
<Link to="/tasks" search={{} as never} className="rounded-lg p-4 bg-destructive/10 hover:opacity-80 transition-opacity">
<div className="text-xs text-muted-foreground">Overdue</div>
<div className="font-serif text-2xl">{myTasks.overdue}</div>
</Link>
<Link to="/tasks" search={{}} className="rounded-lg p-4 bg-muted/40 hover:opacity-80 transition-opacity">
<Link to="/tasks" search={{} as never} className="rounded-lg p-4 bg-muted/40 hover:opacity-80 transition-opacity">
<div className="text-xs text-muted-foreground">Incomplete</div>
<div className="font-serif text-2xl">{myTasks.incomplete}</div>
</Link>