Adding Cursor pointer for view branch in jobs.

This commit is contained in:
Kartik Sharma 2025-12-05 14:37:17 +05:30 committed by pramod.mahajan
parent 946e0b2883
commit 1e151a8b10

View File

@ -175,13 +175,14 @@ const ServiceBranch = () => {
data.data.map((branch) => ( data.data.map((branch) => (
<tr <tr
key={branch.id} key={branch.id}
style={{ height: "35px", cursor: "pointer" }} style={{ height: "35px", cursor: showInactive ? "default" : "pointer" }}
onClick={(e) => { onClick={(e) => {
if (!e.target.closest(".dropdown") && !e.target.closest(".bx-show")) { if (!showInactive && !e.target.closest(".dropdown") && !e.target.closest(".bx-show")) {
setViewRequest({ branchId: branch.id, view: true }); setViewRequest({ branchId: branch.id, view: true });
} }
}} }}
> >
{columns.map((col) => ( {columns.map((col) => (
<td key={col.key} className={`${col.align} py-3`}> <td key={col.key} className={`${col.align} py-3`}>
{col.getValue(branch)} {col.getValue(branch)}
@ -190,12 +191,12 @@ const ServiceBranch = () => {
<td className="text-center"> <td className="text-center">
<div className="d-flex justify-content-center align-items-center gap-2"> <div className="d-flex justify-content-center align-items-center gap-2">
{/* View Icon */} {/* View Icon */}
<i {/* <i
className="bx bx-show text-primary cursor-pointer" className="bx bx-show text-primary cursor-pointer"
onClick={() => onClick={() =>
setViewRequest({ branchId: branch.id, view: true }) setViewRequest({ branchId: branch.id, view: true })
} }
></i> ></i> */}
<div className="dropdown z-2"> <div className="dropdown z-2">
<button <button
@ -232,6 +233,16 @@ const ServiceBranch = () => {
Delete Delete
</a> </a>
</li> </li>
<li
onClick={() =>
setViewRequest({ branchId: branch.id, view: true })
}
>
<a className="dropdown-item px-2 cursor-pointer py-1">
<i className="bx bx-show text-primary cursor-pointer me-2"></i>
View
</a>
</li>
</> </>
) : ( ) : (
<li <li