refactor: standardized date format throughout the platform (#1461)
This commit is contained in:
parent
5a6fd0efdb
commit
4ede04d72f
14 changed files with 48 additions and 35 deletions
|
|
@ -3,7 +3,7 @@ import { useEffect, useRef, useState } from "react";
|
|||
// ui
|
||||
import { Tooltip } from "components/ui";
|
||||
// helpers
|
||||
import { renderDateFormat, renderShortNumericDateFormat } from "helpers/date-time.helper";
|
||||
import { renderDateFormat, renderShortDateWithYearFormat } from "helpers/date-time.helper";
|
||||
// types
|
||||
import { IUserActivity } from "types";
|
||||
// constants
|
||||
|
|
@ -109,7 +109,7 @@ export const ActivityGraph: React.FC<Props> = ({ activities }) => {
|
|||
key={`${date}-${index}`}
|
||||
tooltipContent={`${
|
||||
isActive ? isActive.activity_count : 0
|
||||
} activities on ${renderShortNumericDateFormat(date)}`}
|
||||
} activities on ${renderShortDateWithYearFormat(date)}`}
|
||||
theme="dark"
|
||||
>
|
||||
<div
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue