From 2c352f880cf9ccda1ae4f9ab207b21491b2b7728 Mon Sep 17 00:00:00 2001 From: Quantum Date: Mon, 14 Jul 2025 00:19:03 -0400 Subject: [PATCH] mcal: add labels for different information --- mcal/src/Calendar.tsx | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/mcal/src/Calendar.tsx b/mcal/src/Calendar.tsx index f8ab84c..81f2553 100644 --- a/mcal/src/Calendar.tsx +++ b/mcal/src/Calendar.tsx @@ -14,6 +14,7 @@ import { jdnHaabExt, jdnLordOfNight, jdnTzolkin, } from '@common/mayan'; +import {useMobileTooltipProps} from '@common/ui/MobileTooltip'; type MonthProps = { year: HaabYear; @@ -26,12 +27,21 @@ type DateProps = MonthProps & { function Day({year, month, day, todayJDN}: DateProps & { todayJDN: number }): JSX.Element { const jdn = haabExtJDN({year, month, day}); + const mobile = useMobileTooltipProps(); return
{day} {haabNames[month]}
-
{formatTzolkin(jdnTzolkin(jdn))}
-
{jdnLongCount(jdn)?.join('.')}
-
{formatLordOfNight(jdnLordOfNight(jdn))}
-
{jdnDate(jdn).toDateString()}
+
+ T. {formatTzolkin(jdnTzolkin(jdn))} +
+
+ L. {jdnLongCount(jdn)?.join('.')} +
+
+ N. {formatLordOfNight(jdnLordOfNight(jdn)) + }
+
+ G. {jdnDate(jdn).toDateString()} +
; }