Skip to content

Commit 72be342

Browse files
committed
Do not pass props to children
1 parent 046ed8f commit 72be342

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/module/src/DataView/DataView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ export interface DataViewProps extends DataViewPaginationProps {
1010
}
1111

1212
export const DataView: React.FC<DataViewProps> = ({
13-
children, ouiaId = 'DataView', ...props
13+
children, ouiaId = 'DataView'
1414
}: DataViewProps) => (
1515
<Stack data-ouia-component-id={`${ouiaId}-stack}`}>
1616
{React.Children.map(children, (child, index) => (
1717
React.isValidElement(child) ? (
1818
<StackItem data-ouia-component-id={`${ouiaId}-stack-item-${index}`}>
19-
{React.cloneElement(child, props)}
19+
{child}
2020
</StackItem>
2121
) : null
2222
))}

0 commit comments

Comments
 (0)