Skip to content

Commit f27167d

Browse files
authored
feat(simpleTable): Allow <SimpleTable> to accept any Div props (#94619)
This is so we can pass stuff like `data-test-id` as expected
1 parent 8c384be commit f27167d

File tree

1 file changed

+3
-4
lines changed
  • static/app/components/tables/simpleTable

1 file changed

+3
-4
lines changed

static/app/components/tables/simpleTable/index.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,17 @@ import Panel from 'sentry/components/panels/panel';
88
import {IconArrow} from 'sentry/icons';
99
import {space} from 'sentry/styles/space';
1010

11-
interface TableProps {
11+
interface TableProps extends HTMLAttributes<HTMLDivElement> {
1212
children: React.ReactNode;
13-
className?: string;
1413
}
1514

1615
interface RowProps extends HTMLAttributes<HTMLDivElement> {
1716
variant?: 'default' | 'faded';
1817
}
1918

20-
export function SimpleTable({className, children}: TableProps) {
19+
export function SimpleTable({children, ...props}: TableProps) {
2120
return (
22-
<StyledPanel className={className} role="table">
21+
<StyledPanel {...props} role="table">
2322
{children}
2423
</StyledPanel>
2524
);

0 commit comments

Comments
 (0)