From 10d00d0d502e966142cdcbb4125130dcec4e57ef Mon Sep 17 00:00:00 2001 From: "Philipe A. Marques" <34419519+xRiku@users.noreply.github.com> Date: Tue, 10 Dec 2024 06:13:09 -0300 Subject: [PATCH] feat: add last commit date to projects (#64) * feat: add last commit date to projects * refactor: remove explicit locale Co-authored-by: Leonardo Montini * fix: revert createAdminClient change --------- Co-authored-by: Leonardo Montini --- src/components/PublicProjectCard.tsx | 48 +++++++++++++++++----------- 1 file changed, 29 insertions(+), 19 deletions(-) diff --git a/src/components/PublicProjectCard.tsx b/src/components/PublicProjectCard.tsx index 1c49deb..894863c 100644 --- a/src/components/PublicProjectCard.tsx +++ b/src/components/PublicProjectCard.tsx @@ -7,6 +7,7 @@ import { use, useMemo } from "react" import { Activity } from "react-activity-calendar" import { ActivityCalendar } from "./ActivityCalendar" import { Card, CardContent, CardHeader, CardTitle } from "./ui/card" +import { History } from "lucide-react" type Props = { project: Tables<"projects"> @@ -31,25 +32,34 @@ export function PublicProjectCard({ project, activityPromise }: Props) { return ( - - {project.ownerLogin} - - {project.ownerLogin}/ - - {project.name} - + + + + {lastCommit && ( + + Last commit:{" "} + {new Date(lastCommit).toLocaleDateString()} + + )}