1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-01 09:55:29 -04:00

remove links from each individual box of the /projects calendar

This commit is contained in:
2025-04-19 11:06:40 -04:00
parent 6795facc6a
commit 5f1ef8acf8
+5 -11
View File
@@ -33,21 +33,15 @@ const Calendar = ({ data, className, ...rest }: CalendarProps) => {
], ],
}} }}
labels={{ labels={{
totalCount: `{{count}} contributions in the last year`, totalCount: "{{count}} contributions in the last year",
}} }}
maxLevel={4} maxLevel={4}
renderBlock={(block, activity) => ( renderBlock={(block, activity) =>
<a cloneElement(block, {
href={`https://github.com/jakejarvis?tab=overview&from=${activity.date}&to=${activity.date}`}
target="_blank"
rel="noopener"
>
{cloneElement(block, {
"data-tooltip-id": "activity-tooltip", "data-tooltip-id": "activity-tooltip",
"data-tooltip-html": `${activity.count === 0 ? "No" : activity.count} contribution${activity.count === 1 ? "" : "s"} on ${format(activity.date, "MMMM do")}`, "data-tooltip-html": `${activity.count === 0 ? "No" : activity.count} contribution${activity.count === 1 ? "" : "s"} on ${format(activity.date, "MMMM do")}`,
})} })
</a> }
)}
fontSize={13} fontSize={13}
/> />