refactor: standardized date format throughout the platform (#1461)

This commit is contained in:
Anmol Singh Bhatia 2023-07-04 18:19:19 +05:30 committed by GitHub
parent 5a6fd0efdb
commit 4ede04d72f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 48 additions and 35 deletions

View file

@ -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