diff --git a/public/assets/css/default.css b/public/assets/css/default.css index 32b8644b..7da3c592 100644 --- a/public/assets/css/default.css +++ b/public/assets/css/default.css @@ -213,3 +213,8 @@ .ql-editor { max-height: 200px; } + +/* Remove Table Header Top Line */ +thead tr { + border-top: 1px solid white; +} diff --git a/src/pages/Directory/Directory.jsx b/src/pages/Directory/Directory.jsx index ff8457e2..eb348e10 100644 --- a/src/pages/Directory/Directory.jsx +++ b/src/pages/Directory/Directory.jsx @@ -326,26 +326,29 @@ const Directory = ({ IsPage = true, prefernceContacts }) => { )} -
- - +
+
+ +
+
+
{/* Messages when listView is false */} {!listView && (
@@ -360,48 +363,55 @@ const Directory = ({ IsPage = true, prefernceContacts }) => { )} {/* Table view (listView === true) */} + {listView ? ( - - {loading && ( - - - {" "} -

Loading...

{" "} - - - )} +
+
+ + {loading && ( + + + {" "} +

Loading...

{" "} + + + )} - {!loading && contacts?.length === 0 && ( - - -

No contact found

- - - )} + {!loading && contacts?.length === 0 && ( + + +

No contact found

+ + + )} - {!loading && currentItems.length === 0 && contacts?.length > 0 && ( - - -

No matching contact found

- - - )} + {!loading && + currentItems.length === 0 && + contacts?.length > 0 && ( + + +

No matching contact found

+ + + )} - {!loading && - currentItems.map((contact) => ( - - ))} -
+ {!loading && + currentItems.map((contact) => ( + + ))} + +
+
) : (
{!loading && diff --git a/src/pages/Directory/DirectoryPageHeader.jsx b/src/pages/Directory/DirectoryPageHeader.jsx index c4a1e77a..7de25693 100644 --- a/src/pages/Directory/DirectoryPageHeader.jsx +++ b/src/pages/Directory/DirectoryPageHeader.jsx @@ -32,16 +32,16 @@ const DirectoryPageHeader = ({
setSearchText(e.target.value)} style={{ width: "200px" }} /> -
+
+ +
+ +
+ +
    + {[ + { + id: "b74da4c2-d07e-46f2-9919-e75e49b12731", + label: "Active", + }, + { + id: "603e994b-a27f-4e5d-a251-f3d69b0498ba", + label: "On Hold", + }, + { + id: "ef1c356e-0fe0-42df-a5d3-8daee355492d", + label: "Inactive", + }, + { + id: "33deaef9-9af1-4f2a-b443-681ea0d04f81", + label: "Completed", + }, + ].map(({ id, label }) => ( +
  • +
    + handleStatusChange(id)} + /> + +
    +
  • + ))} +
+
+
+ +
+ +
- -
- - -
- -
- -
    - {[ - { - id: "b74da4c2-d07e-46f2-9919-e75e49b12731", - label: "Active", - }, - { - id: "603e994b-a27f-4e5d-a251-f3d69b0498ba", - label: "On Hold", - }, - { - id: "ef1c356e-0fe0-42df-a5d3-8daee355492d", - label: "Inactive", - }, - { - id: "33deaef9-9af1-4f2a-b443-681ea0d04f81", - label: "Completed", - }, - ].map(({ id, label }) => ( -
  • -
    - handleStatusChange(id)} - /> - -
    -
  • - ))} -
-
-
- -
-
- {loading &&

Loading...

} {!loading && filteredProjects.length === 0 && !listView && (

No projects found.

)} -
- {listView ? ( -
- - - - - - - - - - - - - - - {currentItems.length === 0 ? ( + {listView ? ( +
+
+
+
- Project Name - Contact PersonSTART DATEDEADLINETaskProgress -
- -
    - {[ - { - id: "b74da4c2-d07e-46f2-9919-e75e49b12731", - label: "Active", - }, - { - id: "603e994b-a27f-4e5d-a251-f3d69b0498ba", - label: "On Hold", - }, - { - id: "ef1c356e-0fe0-42df-a5d3-8daee355492d", - label: "Inactive", - }, - { - id: "33deaef9-9af1-4f2a-b443-681ea0d04f81", - label: "Completed", - }, - ].map(({ id, label }) => ( -
  • -
    - handleStatusChange(id)} - /> - -
    -
  • - ))} -
-
-
- Action -
+ - + + + + + + + + - ) : ( - currentItems.map((project) => ( - - )) - )} - -
- No projects found - + Project Name + Contact PersonSTART DATEDEADLINETaskProgress +
+ +
    + {[ + { + id: "b74da4c2-d07e-46f2-9919-e75e49b12731", + label: "Active", + }, + { + id: "603e994b-a27f-4e5d-a251-f3d69b0498ba", + label: "On Hold", + }, + { + id: "ef1c356e-0fe0-42df-a5d3-8daee355492d", + label: "Inactive", + }, + { + id: "33deaef9-9af1-4f2a-b443-681ea0d04f81", + label: "Completed", + }, + ].map(({ id, label }) => ( +
  • +
    + handleStatusChange(id)} + /> + +
    +
  • + ))} +
+
+
+ Action +
-
- ) : ( - currentItems.map((project) => ( + + + {currentItems.length === 0 ? ( + + + No projects found + + + ) : ( + currentItems.map((project) => ( + + )) + )} + + +
{" "} +
{" "} +
+ ) : ( +
+ {currentItems.map((project) => ( - )) - )} -
+ ))} + + )} {!loading && totalPages > 1 && (