diff --git a/packages/react/src/components/DataTable/stories/DataTable-batch-actions-story.js b/packages/react/src/components/DataTable/stories/DataTable-batch-actions-story.js index 631e69a2f69b..164752e6664d 100644 --- a/packages/react/src/components/DataTable/stories/DataTable-batch-actions-story.js +++ b/packages/react/src/components/DataTable/stories/DataTable-batch-actions-story.js @@ -76,82 +76,87 @@ export const Usage = () => ( selectedRows, getTableProps, getTableContainerProps, - }) => ( - - - - - Delete - - - Save - - - Download - - - - - - alert('Alert 1')}> - Action 1 - - alert('Alert 2')}> - Action 2 - - alert('Alert 3')}> - Action 3 - - - - - - - - - - {headers.map((header, i) => ( - - {header.header} - - ))} - - - - {rows.map((row, i) => ( - - - {row.cells.map((cell) => ( - {cell.value} + }) => { + const batchActionProps = getBatchActionProps(); + + return ( + + + + + Delete + + + Save + + + Download + + + + + + alert('Alert 1')}> + Action 1 + + alert('Alert 2')}> + Action 2 + + alert('Alert 3')}> + Action 3 + + + + + +
+ + + + {headers.map((header, i) => ( + + {header.header} + ))} - ))} - -
-
- )} + + + {rows.map((row, i) => ( + + + {row.cells.map((cell) => ( + {cell.value} + ))} + + ))} + + + + ); + }} );