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 046ed8f commit 72be342Copy full SHA for 72be342
packages/module/src/DataView/DataView.tsx
@@ -10,13 +10,13 @@ export interface DataViewProps extends DataViewPaginationProps {
10
}
11
12
export const DataView: React.FC<DataViewProps> = ({
13
- children, ouiaId = 'DataView', ...props
+ children, ouiaId = 'DataView'
14
}: DataViewProps) => (
15
<Stack data-ouia-component-id={`${ouiaId}-stack}`}>
16
{React.Children.map(children, (child, index) => (
17
React.isValidElement(child) ? (
18
<StackItem data-ouia-component-id={`${ouiaId}-stack-item-${index}`}>
19
- {React.cloneElement(child, props)}
+ {child}
20
</StackItem>
21
) : null
22
))}
0 commit comments