Skip to content

Add empty state icon and fix condition (#29)#138

Open
SinhSinhAn wants to merge 1 commit intodevelopfrom
add-empty-state
Open

Add empty state icon and fix condition (#29)#138
SinhSinhAn wants to merge 1 commit intodevelopfrom
add-empty-state

Conversation

@SinhSinhAn
Copy link
Contributor

@SinhSinhAn SinhSinhAn commented Mar 20, 2026

Summary

  • Enhanced EmptyStateCard with a FolderOffIcon default and optional icon prop for customization
  • Fixed the empty state condition on the notes page to check fileCount === 0 instead of sections.length === 0, so pages like /CS/2305 that have sections but no uploaded files correctly show the empty state
  • Closes Add an Empty State Component #29

- Add FolderOffIcon with optional icon prop to EmptyStateCard
- Change empty state condition from sections.length to fileCount so
  pages with sections but no files show the empty state
@vercel
Copy link

vercel bot commented Mar 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
utd-notebook Ready Ready Preview, Comment Mar 20, 2026 4:05pm

Request Review

@SinhSinhAn SinhSinhAn changed the title Add empty state icon and fix condition (#137) Add empty state icon and fix condition (#29) Mar 20, 2026
Copy link
Member

@TyHil TyHil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀🚀🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an Empty State Component

2 participants