Adding Cursor pointer for view branch in jobs.

This commit is contained in:
Kartik Sharma 2025-12-05 14:37:17 +05:30
parent da53a2fc62
commit 9bf6fc1f36

View File

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