mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-18 21:44:06 +01:00
Refactor RecentFunds component to display only the first two characters of the deal name in the AvatarFallback
This commit is contained in:
parent
bca431ee26
commit
2188d2b33f
@ -48,7 +48,7 @@ export function RecentFunds(props: RecentFundsProps) {
|
||||
<div className="flex items-center" key={index}>
|
||||
<Avatar className="h-9 w-9">
|
||||
<AvatarImage src={deal.avatar} alt={deal.name} />
|
||||
<AvatarFallback>{(deal.name ?? "").slice(0, 3)}</AvatarFallback>
|
||||
<AvatarFallback>{(deal.name ?? "").slice(0, 2)}</AvatarFallback>
|
||||
</Avatar>
|
||||
<div className="ml-4 space-y-1">
|
||||
<p className="text-sm font-medium leading-none">{deal.name}</p>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user