Skip to content

Commit

Permalink
feat: Display number of entries in GardenDaily component
Browse files Browse the repository at this point in the history
  • Loading branch information
bramses committed Aug 17, 2024
1 parent 8814ff3 commit f1b857d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/[locale]/(auth)/dashboard/garden/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ const GardenDaily = () => {
<Calendar onClickDay={(val) => fetchRecords(val)} />
<h1 className="mb-4 text-4xl font-extrabold leading-none tracking-tight text-gray-900 md:text-5xl lg:text-6xl dark:text-white">
{selectedDay}
<small className="ms-2 font-semibold text-gray-500 dark:text-gray-400">
{entries.length > 0 ? `:: ${entries.length} entries` : ''}{' '}
</small>
</h1>
{loading && <p>Loading...</p>}
{entries.length === 0 ? (
Expand Down

0 comments on commit f1b857d

Please sign in to comment.