메인페이지 탭이동
Deploy Frontend / deploy (push) Successful in 2m54s

This commit is contained in:
2026-10-02 21:52:10 +09:00
parent ff45d1a875
commit 68a800cdfc
3 changed files with 47 additions and 6 deletions
@@ -58,8 +58,16 @@ function DataTable<T>({
<TableRow
key={row.id}
onClick={() => onRowClick?.(row.original)}
onKeyDown={(event) => {
if (event.target !== event.currentTarget) return;
if (event.key !== "Enter" && event.key !== " ") return;
event.preventDefault();
onRowClick?.(row.original);
}}
tabIndex={onRowClick ? 0 : undefined}
className={cn(
onRowClick && "cursor-pointer hover:bg-accent",
onRowClick &&
"cursor-pointer hover:bg-accent focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary",
isSelectedRow && "!bg-primary-transparent",
)}
>