Skip to content

Commit

Permalink
fix: align listbox popover more menu (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
stoffeastrom committed Apr 2, 2020
1 parent f9d5e4b commit 6ce4860
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions apis/nucleus/src/components/SelectionToolbar.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import React, { useContext } from 'react';

import { Grid } from '@material-ui/core';

import { close } from '@nebula.js/ui/icons/close';
import { tick } from '@nebula.js/ui/icons/tick';
import { clearSelections } from '@nebula.js/ui/icons/clear-selections';
Expand All @@ -11,13 +9,11 @@ import Item from './SelectionToolbarItem';

const SelectionToolbar = React.forwardRef(({ layout, items }, ref) => {
return (
<Grid container spacing={0} wrap="nowrap">
<>
{items.map((e, ix) => (
<Grid item key={e.key}>
<Item key={e.key} layout={layout} item={e} ref={ix === 0 ? ref : null} />
</Grid>
<Item key={e.key} layout={layout} item={e} ref={ix === 0 ? ref : null} />
))}
</Grid>
</>
);
});

Expand Down

0 comments on commit 6ce4860

Please sign in to comment.