다시 commit

This commit is contained in:
YangJinSoo94
2025-04-03 17:52:10 +09:00
parent da723e74b9
commit 6e10389b33
@@ -24,6 +24,8 @@ export function UiTable({ tableData, headlist, pageSize, total, children, headNa
setCur(page);
onPageChange(page);
}
const style = cellClick ? 'cursor-pointer' : '';
return (
<>
{headName ? <div className="card-header">
@@ -42,7 +44,7 @@ export function UiTable({ tableData, headlist, pageSize, total, children, headNa
{tableData?.map((el: { [key: string]: string | number | boolean | object}, index) => (
<TableRow key={index + "row"} >
{headlist?.map((head) => (
<TableCell className="cursor-pointer" onClick={()=>cellClick && cellClick(index)} key={head.id + index}>{el[head.id]}</TableCell>
<TableCell className={style} onClick={()=>cellClick && cellClick(index)} key={head.id + index}>{el[head.id]}</TableCell>
))}
</TableRow>
))}