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

Enhancement on UI/UX on user statistic view part.
pull/4140/head
Andy An 5 months ago committed by GitHub
parent f00751a6e0
commit f6af564d4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save