Skip to content

Commit

Permalink
chore: empty list component rendered for journal timeline page
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalkeshan committed Nov 30, 2023
1 parent ae20bab commit 947bd7c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/profile/journal/JournalTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
orderBy,
} from 'firebase/firestore';
import 'react-vertical-timeline-component/style.min.css';
import EmptyList from '../../reusable/EmptyList';

const JournalTimeline = () => {
const [journals, setJournals] = useState<Journal[]>([]);
Expand Down Expand Up @@ -98,7 +99,15 @@ const JournalTimeline = () => {
</VerticalTimelineElement>
))}
</VerticalTimeline>
) : null}
) : (
<EmptyList
data={{
title: 'No entries for today!',
description:
"Oops! It seems like you haven't recorded any moods or created journal entries for today. Taking small steps each day can make a big difference in understanding and improving your mental well-being!",
}}
/>
)}
</motion.div>
);
};
Expand Down

0 comments on commit 947bd7c

Please sign in to comment.