mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 23:58:31 -06:00
improved tooltips
This commit is contained in:
@@ -22,6 +22,16 @@ export const BreadCrumbs = () => {
|
||||
? decodeURIComponent(pathSegments[3])
|
||||
: null;
|
||||
|
||||
const lectureDateOnly = lectureDate
|
||||
? (() => {
|
||||
const dateStr = lectureDate.split(" ")[0];
|
||||
const date = new Date(dateStr);
|
||||
const month = date.toLocaleDateString("en-US", { month: "short" });
|
||||
const day = date.getDate();
|
||||
return `${month} ${day}`;
|
||||
})()
|
||||
: null;
|
||||
|
||||
const sharedBackgroundClassNames = `
|
||||
group
|
||||
hover:bg-blue-900/30
|
||||
@@ -86,7 +96,7 @@ export const BreadCrumbs = () => {
|
||||
shallow={true}
|
||||
className={sharedLinkClassNames}
|
||||
>
|
||||
{lectureDate}
|
||||
{lectureDateOnly}
|
||||
</Link>
|
||||
</span>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user