Skip to content

Commit

Permalink
Update src/components/InstallButton.js
Browse files Browse the repository at this point in the history
remove the children

Co-authored-by: aswanson-nr <[email protected]>
  • Loading branch information
rudouglas and aswanson-nr authored Jun 3, 2021
1 parent 2b71cb9 commit 0362474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/InstallButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { css } from '@emotion/react';

const sampleItems = new Array(10).fill().map((_, i) => i + 1);

const createMenuItems = (children, items) => {
const createMenuItems = (items) => items.map((i) => <Dropdown.MenuItem>{i}</Dropdown.MenuItem>)
const menuItems = [];
for (const item of items) {
menuItems.push(<Dropdown.MenuItem>{item}</Dropdown.MenuItem>);
Expand Down

0 comments on commit 0362474

Please sign in to comment.