1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-25 23:25:25 -04:00

remove links from each individual box of the /projects calendar

This commit is contained in:
Jake Jarvis 2025-04-19 11:06:40 -04:00
parent 6795facc6a
commit 5f1ef8acf8
Signed by: jake
SSH Key Fingerprint: SHA256:nCkvAjYA6XaSPUqc4TfbBQTpzr8Xj7ritg/sGInCdkc

View File

@ -33,21 +33,15 @@ const Calendar = ({ data, className, ...rest }: CalendarProps) => {
],
}}
labels={{
totalCount: `{{count}} contributions in the last year`,
totalCount: "{{count}} contributions in the last year",
}}
maxLevel={4}
renderBlock={(block, activity) => (
<a
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-html": `${activity.count === 0 ? "No" : activity.count} contribution${activity.count === 1 ? "" : "s"} on ${format(activity.date, "MMMM do")}`,
})}
</a>
)}
renderBlock={(block, activity) =>
cloneElement(block, {
"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")}`,
})
}
fontSize={13}
/>