@@ -13,7 +13,7 @@ import {Stack} from '../Stack';
1313import { Spinner } from '../Spinner' ;
1414import { Text } from '../Text' ;
1515import {
16- BulkAction ,
16+ BulkActions ,
1717 BulkActionsProps ,
1818 useIsBulkActionsSticky ,
1919} from '../BulkActions' ;
@@ -27,7 +27,7 @@ import {
2727} from '../../utilities/index-provider' ;
2828import { AfterInitialMount } from '../AfterInitialMount' ;
2929import { IndexProvider } from '../IndexProvider' ;
30- import type { ActionListSection , NonEmptyArray } from '../../types' ;
30+ import type { NonEmptyArray } from '../../types' ;
3131
3232import { getTableHeadingsBySelector } from './utilities' ;
3333import { ScrollContainer , Cell , Row } from './components' ;
@@ -104,11 +104,6 @@ export interface IndexTableBaseProps {
104104 onboardingBadgeText ?: string ;
105105 undoText ?: string ;
106106 checkbox ?: ( props : IndexTableHeadingCheckbox ) => React . ReactNode ;
107- renderBulkActions ?: ( {
108- actions,
109- } : {
110- actions : ( BulkAction | ActionListSection ) [ ] ;
111- } ) => React . ReactNode ;
112107}
113108
114109export interface TableHeadingRect {
@@ -142,7 +137,6 @@ function IndexTableBase({
142137 onboardingBadgeText,
143138 undoText,
144139 checkbox,
145- renderBulkActions,
146140 ...restProps
147141} : IndexTableBaseProps ) {
148142 const {
@@ -537,7 +531,7 @@ function IndexTableBase({
537531 ) ;
538532
539533 const shouldShowActions = ! condensed || selectedItemsCount ;
540- // const promotedActions = shouldShowActions ? promotedBulkActions : [];
534+ const promotedActions = shouldShowActions ? promotedBulkActions : [ ] ;
541535 const actions = shouldShowActions ? bulkActions : [ ] ;
542536
543537 const bulkActionsMarkup =
@@ -554,15 +548,14 @@ function IndexTableBase({
554548 : undefined ,
555549 } }
556550 >
557- { renderBulkActions ?.( { actions} ) }
558- { /* <BulkActions
551+ < BulkActions
559552 selectMode = { selectMode }
560553 promotedActions = { promotedActions }
561554 actions = { actions }
562555 onSelectModeToggle = { condensed ? handleSelectModeToggle : undefined }
563556 isSticky = { isBulkActionsSticky }
564557 width = { bulkActionsMaxWidth }
565- /> */ }
558+ />
566559 </ div >
567560 ) : null ;
568561
@@ -842,9 +835,9 @@ function IndexTableBase({
842835 } ;
843836 }
844837
845- // function handleSelectModeToggle() {
846- // handleSelectionChange(SelectionType.All, false);
847- // }
838+ function handleSelectModeToggle ( ) {
839+ handleSelectionChange ( SelectionType . All , false ) ;
840+ }
848841}
849842
850843const isBreakpointsXS = ( ) => {
0 commit comments