Compare commits
2 Commits
2f3a0f3652
...
20eabbb85f
| Author | SHA1 | Date |
|---|---|---|
|
|
20eabbb85f | |
|
|
65bd4f9b65 |
|
|
@ -145,13 +145,27 @@ export default function UserDetailPage() {
|
||||||
<p className="text-sm text-muted-foreground flex items-center gap-1">
|
<p className="text-sm text-muted-foreground flex items-center gap-1">
|
||||||
<TreePine className="h-3 w-3 text-green-600" /> 个人认种
|
<TreePine className="h-3 w-3 text-green-600" /> 个人认种
|
||||||
</p>
|
</p>
|
||||||
<p className="text-lg font-bold text-green-600">{formatNumber(user?.personalAdoptions ?? 0)}</p>
|
<p className="text-lg font-bold text-green-600">
|
||||||
|
{formatNumber(user?.personalAdoptions ?? 0)}
|
||||||
|
{(user?.personalAdoptionOrders ?? 0) > 0 && (
|
||||||
|
<span className="text-sm font-normal text-green-500 ml-1">
|
||||||
|
({user?.personalAdoptionOrders}单)
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="p-3 bg-blue-50 dark:bg-blue-950 rounded-lg">
|
<div className="p-3 bg-blue-50 dark:bg-blue-950 rounded-lg">
|
||||||
<p className="text-sm text-muted-foreground flex items-center gap-1">
|
<p className="text-sm text-muted-foreground flex items-center gap-1">
|
||||||
<Users className="h-3 w-3 text-blue-600" /> 团队认种
|
<Users className="h-3 w-3 text-blue-600" /> 团队认种
|
||||||
</p>
|
</p>
|
||||||
<p className="text-lg font-bold text-blue-600">{formatNumber(user?.teamAdoptions ?? 0)}</p>
|
<p className="text-lg font-bold text-blue-600">
|
||||||
|
{formatNumber(user?.teamAdoptions ?? 0)}
|
||||||
|
{(user?.teamAdoptionOrders ?? 0) > 0 && (
|
||||||
|
<span className="text-sm font-normal text-blue-500 ml-1">
|
||||||
|
({user?.teamAdoptionOrders}单)
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="p-3 bg-purple-50 dark:bg-purple-950 rounded-lg">
|
<div className="p-3 bg-purple-50 dark:bg-purple-950 rounded-lg">
|
||||||
<p className="text-sm text-muted-foreground">团队地址</p>
|
<p className="text-sm text-muted-foreground">团队地址</p>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue