Skip to content

Commit

Permalink
Discard changes to src/components/QuickMenu/index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Royal-lobster authored Oct 7, 2023
1 parent e01de04 commit a507afe
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/components/QuickMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,17 @@ export const QuickMenu = ({ selectedText, setMenuOpen }: QuickMenuProps) => {
{prompts
.filter((i) => !i.prompt)
.map((item) => (
<div key={item.id}>
<>
<DropdownMenu.Label className='cdx-text-[10px] cdx-m-1 cdx-text-neutral-500 cdx-uppercase'>
{item.name}
</DropdownMenu.Label>
{item.children?.map((item) => (
<RecursiveItem
key={item.id}
item={item}
handleGenerate={handleGenerate}
/>
))}
</div>
</>
))}

{noCategoryPrompts.length > 0 && (
Expand All @@ -87,11 +86,7 @@ export const QuickMenu = ({ selectedText, setMenuOpen }: QuickMenuProps) => {
</DropdownMenu.Label>
)}
{noCategoryPrompts.map((item) => (
<RecursiveItem
key={item.id}
item={item}
handleGenerate={handleGenerate}
/>
<RecursiveItem item={item} handleGenerate={handleGenerate} />
))}
</DropdownMenu.Group>
</DropdownMenu.Content>
Expand Down

0 comments on commit a507afe

Please sign in to comment.