enhance UX for loading and empty states in contact table

This commit is contained in:
Pramod Mahajan 2025-06-03 00:12:39 +05:30
parent f92ef4e52a
commit 1298994f58

View File

@ -341,7 +341,7 @@ const handleDeleteContact = async (overrideId = null) => {
{/* Messages when listView is false */}
{!listView && (
<div className="d-flex flex-column justify-content-center align-items-center text-center card-minHeight">
<div className="d-flex flex-column justify-content-center align-items-center text-center ">
{loading && <p>Loading...</p>}
{!loading && contacts?.length === 0 && <p>No contact found</p>}
{!loading && contacts?.length > 0 && currentItems.length === 0 && (