From 1e2b7ad9a7d88b85efb79395752f761a83051ccb Mon Sep 17 00:00:00 2001 From: lareii Date: Thu, 19 Sep 2024 19:58:23 +0300 Subject: [PATCH] feat(client): add user points to hover card --- client/components/app/User/Hover.jsx | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/client/components/app/User/Hover.jsx b/client/components/app/User/Hover.jsx index dd532ec..a5db65b 100644 --- a/client/components/app/User/Hover.jsx +++ b/client/components/app/User/Hover.jsx @@ -1,5 +1,5 @@ import Link from 'next/link'; -import { CalendarFold } from 'lucide-react'; +import { CalendarFold, Sparkle, Trash } from 'lucide-react'; import { Badge } from '@/components/ui/badge'; import { HoverCard, @@ -45,13 +45,24 @@ export default function Hover({ user }) {
{user.about}
-
- - {new Date(user.created_at.T * 1000).toLocaleDateString('tr-TR', { - year: 'numeric', - month: 'long', - day: 'numeric' - })} +
+
+ + {new Date(user.created_at.T * 1000).toLocaleDateString( + 'tr-TR', + { year: 'numeric', month: 'long', day: 'numeric' } + )} +
+ {' · '} +
+ + + +
+ +
{user.points} çöp puanı
+
+