Skip to content

Commit

Permalink
Move notice outside the dataviews container
Browse files Browse the repository at this point in the history
  • Loading branch information
merkushin committed Jan 15, 2025
1 parent 0f09103 commit 55bc8d8
Showing 1 changed file with 19 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,23 +73,25 @@ export const DomainsDataViews = ( {

const layout = sidebarMode ? { list: {} } : { table: {} };
return (
<div className={ clsx( 'domains-dataviews', { 'domains-dataviews-list': sidebarMode } ) }>
<>
{ ! sidebarMode && <BulkUpdateNotice /> }
<DataViews
data={ domainsToDisplay }
fields={ fields }
onChangeView={ ( newView ) => setView( () => newView ) }
view={ view }
actions={ actions }
search
searchLabel={ translate( 'Search by domain…' ) }
paginationInfo={ paginationInfo }
getItemId={ getDomainId }
selection={ selectedDomain ? [ getDomainId( selectedDomain ) ] : selectedIds }
onChangeSelection={ setSelectedIds }
isLoading={ isLoading }
defaultLayouts={ layout }
/>
</div>
<div className={ clsx( 'domains-dataviews', { 'domains-dataviews-list': sidebarMode } ) }>
<DataViews
data={ domainsToDisplay }
fields={ fields }
onChangeView={ ( newView ) => setView( () => newView ) }
view={ view }
actions={ actions }
search
searchLabel={ translate( 'Search by domain…' ) }
paginationInfo={ paginationInfo }
getItemId={ getDomainId }
selection={ selectedDomain ? [ getDomainId( selectedDomain ) ] : selectedIds }
onChangeSelection={ setSelectedIds }
isLoading={ isLoading }
defaultLayouts={ layout }
/>
</div>
</>
);
};

0 comments on commit 55bc8d8

Please sign in to comment.