feat: enhancement on UI/UX on user statistic view part. (#4122)

Enhancement on UI/UX on user statistic view part.
This commit is contained in:
Andy An
2024-11-16 17:47:41 -08:00
committed by GitHub
parent f00751a6e0
commit f6af564d4e

View File

@@ -89,7 +89,13 @@ const UserStatisticsView = () => {
data={activityStats} data={activityStats}
onClick={onCalendarClick} onClick={onCalendarClick}
/> />
{memoAmount > 0 && ( {memoAmount === 0 ? (
<p className="mt-1 w-full text-xs italic opacity-80">No memos</p>
) : memoAmount === 1 ? (
<p className="mt-1 w-full text-xs italic opacity-80">
<span>{memoAmount}</span> memo in <span>{days}</span> {days > 1 ? "days" : "day"}
</p>
) : (
<p className="mt-1 w-full text-xs italic opacity-80"> <p className="mt-1 w-full text-xs italic opacity-80">
<span>{memoAmount}</span> memos in <span>{days}</span> {days > 1 ? "days" : "day"} <span>{memoAmount}</span> memos in <span>{days}</span> {days > 1 ? "days" : "day"}
</p> </p>