removed unused props

This commit is contained in:
Pramod Mahajan 2025-05-29 20:11:26 +05:30 committed by pramod.mahajan
parent 9ff79b5854
commit eb678585fa

View File

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