Skip to content

Commit

Permalink
Fix demo
Browse files Browse the repository at this point in the history
  • Loading branch information
mg-aceik committed Dec 11, 2023
1 parent 6bcfa2a commit aa3bf88
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ const code = `
import { Group, Menu } from '@mantine/core';
function Demo() {
const navMenus = 4;
return (
<Group>
{[...Array(navMenus)].map((e, i) => (
{Array(4).fill(0).map((e, i) => (
<Menu
key={i}
trigger="click-hover"
Expand All @@ -19,7 +18,7 @@ function Demo() {
trapFocus={false}
menuItemTabIndex={0}
>
{/* ... menu items */}
<DemoMenuItems />
</Menu>
))}
</Group>
Expand All @@ -28,10 +27,9 @@ function Demo() {
`;

function Demo() {
const navMenus = 4;
return (
<Group>
{[...Array(navMenus)].map((e, i) => (
{Array(4).fill(0).map((e, i) => (
<Menu
key={i}
trigger="click-hover"
Expand Down

0 comments on commit aa3bf88

Please sign in to comment.