mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
booking flow,summtion, approval, contract, mock payemnt and integration to back office, and also add permissions
This commit is contained in:
@@ -97,7 +97,30 @@ export function DataTable<TData, TValue>({
|
||||
<TableRow
|
||||
key={row.id}
|
||||
data-state={row.getIsSelected() && "selected"}
|
||||
onClick={() => onRowClick?.(row.original)}
|
||||
onClick={(event) => {
|
||||
if (!onRowClick) return;
|
||||
const target = event.target as HTMLElement;
|
||||
if (
|
||||
target.closest(
|
||||
[
|
||||
"button",
|
||||
"a",
|
||||
"input",
|
||||
"textarea",
|
||||
"select",
|
||||
"[role='menu']",
|
||||
"[role='menuitem']",
|
||||
"[data-slot='dialog-content']",
|
||||
"[data-slot='dialog-overlay']",
|
||||
"[data-slot='dropdown-menu-content']",
|
||||
"[data-stop-row-click]",
|
||||
].join(","),
|
||||
)
|
||||
) {
|
||||
return;
|
||||
}
|
||||
onRowClick(row.original);
|
||||
}}
|
||||
role={onRowClick ? "button" : ""}
|
||||
className={
|
||||
onRowClick
|
||||
|
||||
Reference in New Issue
Block a user