removed unused props

This commit is contained in:
Pramod Mahajan 2025-05-29 20:11:26 +05:30
parent b0e3b767d3
commit 2eee4a1f6a

View File

@ -1,14 +1,12 @@
import React from 'react'
import IconButton from '../../components/common/IconButton';
import React from "react";
import IconButton from "../../components/common/IconButton";
const DirectoryListTableHeader = ( {children, IsActive} ) =>
{
const DirectoryListTableHeader = ({ children }) => {
return (
<div className="table-responsive text-nowrap py-2">
<table className="table px-2">
<thead>
<tr>
<tr>
<th colSpan={2}>
<div className="d-flex align-items-center gap-1">
<span>Name</span>
@ -25,13 +23,10 @@ const DirectoryListTableHeader = ( {children, IsActive} ) =>
</div>
</th>
<th colSpan={2} className="mx-2 ps-20">
Organization
Organization
</th>
<th className="mx-2">Category</th>
{IsActive && <th>Action</th>}
<th>Action</th>
</tr>
</thead>
<tbody className="table-border-bottom-0 overflow-auto">
@ -41,4 +36,4 @@ const DirectoryListTableHeader = ( {children, IsActive} ) =>
</div>
);
};
export default DirectoryListTableHeader;
export default DirectoryListTableHeader;