Fix the styling of the frame in the Leaderboard section of Analytics.

This commit is contained in:
AnnaMag 2022-05-23 17:30:47 +02:00
parent c066f90f96
commit af7f738704
1 changed files with 15 additions and 10 deletions

View File

@ -122,16 +122,21 @@ const Leaderboards = ( props ) => {
hiddenBlocks,
onToggleHiddenBlock,
} ) }
<SelectControl
className="woocommerce-dashboard__dashboard-leaderboards__select"
label={ __( 'Rows per table', 'woocommerce' ) }
value={ rowsPerTable }
options={ Array.from( { length: 20 }, ( v, key ) => ( {
v: key + 1,
label: key + 1,
} ) ) }
onChange={ setRowsPerTable }
/>
<MenuItem>
<SelectControl
className="woocommerce-dashboard__dashboard-leaderboards__select"
label={ __( 'Rows per table', 'woocommerce' ) }
value={ rowsPerTable }
options={ Array.from(
{ length: 20 },
( v, key ) => ( {
v: key + 1,
label: key + 1,
} )
) }
onChange={ setRowsPerTable }
/>
</MenuItem>
<Controls
onToggle={ onToggle }
onMove={ onMove }