Adding Cursor pointer for view branch in jobs.
This commit is contained in:
parent
da53a2fc62
commit
9bf6fc1f36
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user