mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user