diff --git a/src/api/user.ts b/src/api/user.ts index e82f13b75..b10458dbf 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -54,10 +54,10 @@ export interface UserDocument { roadmapVisibility: AllowedRoadmapVisibility; customRoadmapVisibility: AllowedCustomRoadmapVisibility; }; - resetPasswordCodeAt: Date; - verifiedAt: Date; - createdAt: Date; - updatedAt: Date; + resetPasswordCodeAt: string; + verifiedAt: string; + createdAt: string; + updatedAt: string; } export type UserActivityCount = { diff --git a/src/components/UserPublicProfile/UserPublicActivityHeatmap.tsx b/src/components/UserPublicProfile/UserPublicActivityHeatmap.tsx index 8a36c4661..80be3cbaa 100644 --- a/src/components/UserPublicProfile/UserPublicActivityHeatmap.tsx +++ b/src/components/UserPublicProfile/UserPublicActivityHeatmap.tsx @@ -2,12 +2,13 @@ import CalendarHeatmap from 'react-calendar-heatmap'; import { Tooltip as ReactTooltip } from 'react-tooltip'; import 'react-calendar-heatmap/dist/styles.css'; import 'react-tooltip/dist/react-tooltip.css'; -import { formatActivityDate } from '../../lib/date'; +import { formatActivityDate, formatMonthDate } from '../../lib/date'; import type { UserActivityCount } from '../../api/user'; import dayjs from 'dayjs'; type UserActivityHeatmapProps = { activity: UserActivityCount; + joinedAt: string; }; const legends = [ @@ -37,7 +38,9 @@ export function UserActivityHeatmap(props: UserActivityHeatmapProps) { Progress updates over the past year
- Member since: June 2021 + + Member since: {formatMonthDate(props.joinedAt)} +- {errorMessage} + + {errorMessage} +