Skip to content

Commit

Permalink
EmployeeList warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RedDotz20 committed Nov 30, 2022
1 parent b16f0d2 commit d88f97c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions client/src/components/EmployeeList/EmployeeList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const TableHeader = () => {

const EmptyTable = () => {
return (
<div className="text-3xl font-semibold absolute grid items-center text-center w-full h-64">
EMPTY TABLE
</div>
<tr className="text-3xl font-semibold absolute grid items-center text-center w-full h-64">
<td>EMPTY TABLE</td>
</tr>
);
};

Expand All @@ -37,7 +37,6 @@ export default function EmployeeDataList({
<div className="overflow-y-scroll overflow-x-hidden scroll-width h-[18.5rem] border-collapse my-8 text-base w-full shadow-xl child-th:py-1 child-th:px-4 max-h-min">
<table className="w-full">
<TableHeader />

<tbody className="b-bottom b-color-even b-color-last relative">
{employees.length <= 0 ? (
<EmptyTable />
Expand All @@ -61,7 +60,6 @@ export default function EmployeeDataList({
setUpdateId={setUpdateId}
updateId={id}
/>

<DeleteBtn
setDeleteModal={setDeleteModal}
setDeleteId={setDeleteId}
Expand Down

0 comments on commit d88f97c

Please sign in to comment.