We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6539bfd commit db2cac1Copy full SHA for db2cac1
src/components/v2/Table/index.tsx
@@ -129,15 +129,6 @@ export const Table = ({
129
onClick={
130
rowOnClick && ((e: React.MouseEvent<HTMLDivElement>) => rowOnClick(e, row))
131
}
132
- component={
133
- getRowHref
134
- ? ({ children, ...props }) => (
135
- <Link {...props} to={getRowHref(row)}>
136
- {children}
137
- </Link>
138
- )
139
- : 'tr'
140
- }
141
>
142
{row.map(({ key, render, align }: ITableRowProps) => {
143
const cellContent = render();
@@ -149,7 +140,7 @@ export const Table = ({
149
title={cellTitle}
150
align={align}
151
152
- {cellContent}
+ {getRowHref ? <Link to={getRowHref(row)}>{cellContent}</Link> : cellContent}
153
144
</TableCell>
154
145
);
155
146
})}
0 commit comments