Closed akathedeveloper closed 2 weeks ago
Hey @akathedeveloper your commits are creating a conflict please fix them.
Additional Changes:
const counts = { total: 0, pending: 0, active: 0, ended: 0 };
you can use this to get
const statusNames = Object.keys(counts); // ['total', 'pending', 'active', 'ended']
which can be later used to show the name No {name} Elections found.filteredElections
variable check of 0.Sure sir I will make sure to incorporate the changes suggest by you
Description:
This PR enhances the ElectionDash component by adding a message that is displayed when there are no elections matching the selected filter (Pending, Active, or Ended). The message is centered and styled to be easily noticeable, improving the user experience by providing clear feedback when no elections are available for the chosen filter.
Changes Made:
Screenshots :
Before:
After:
Testing:
Related Issue:
Issue #61