Unverified Commit f6af564d authored by Andy An's avatar Andy An Committed by GitHub

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

Enhancement on UI/UX on user statistic view part.
parent f00751a6
......@@ -89,7 +89,13 @@ const UserStatisticsView = () => {
data={activityStats}
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">
<span>{memoAmount}</span> memos in <span>{days}</span> {days > 1 ? "days" : "day"}
</p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment