Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
7436d1bf18
commit
f6877a4306
@@ -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 }}
|
||||
<Link key={p.id} to="/pay/$id" params={{ id: p.id }} search={{}}
|
||||
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" className="rounded-lg p-4 bg-amber-500/10 hover:opacity-80 transition-opacity">
|
||||
<Link to="/tasks" search={{}} 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" className="rounded-lg p-4 bg-destructive/10 hover:opacity-80 transition-opacity">
|
||||
<Link to="/tasks" search={{}} 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" className="rounded-lg p-4 bg-muted/40 hover:opacity-80 transition-opacity">
|
||||
<Link to="/tasks" search={{}} 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>
|
||||
|
||||
Reference in New Issue
Block a user