Spaces:
Running
Running
Added elevnlabs fixing build issues
Browse files
app/components/ContextMenu.tsx
CHANGED
|
@@ -50,21 +50,12 @@ export function ContextMenu({ isOpen, position, onClose, onAction }: ContextMenu
|
|
| 50 |
maxHeight: `calc(100vh - ${position.y}px - 20px)`
|
| 51 |
}}
|
| 52 |
>
|
| 53 |
-
{menuItems.map((item
|
| 54 |
-
|
| 55 |
-
return (
|
| 56 |
-
<div
|
| 57 |
-
key={`separator-${index}`}
|
| 58 |
-
className="h-px bg-gray-300/50 my-1 mx-2"
|
| 59 |
-
/>
|
| 60 |
-
)
|
| 61 |
-
}
|
| 62 |
-
|
| 63 |
-
const Icon = item.icon!
|
| 64 |
return (
|
| 65 |
<button
|
| 66 |
key={item.id}
|
| 67 |
-
onClick={() => handleAction(item.id
|
| 68 |
className="w-full text-left px-4 py-1.5 hover:bg-blue-500 hover:text-white transition-colors flex items-center gap-3 text-sm"
|
| 69 |
>
|
| 70 |
<Icon size={16} weight="regular" />
|
|
|
|
| 50 |
maxHeight: `calc(100vh - ${position.y}px - 20px)`
|
| 51 |
}}
|
| 52 |
>
|
| 53 |
+
{menuItems.map((item) => {
|
| 54 |
+
const Icon = item.icon
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
return (
|
| 56 |
<button
|
| 57 |
key={item.id}
|
| 58 |
+
onClick={() => handleAction(item.id)}
|
| 59 |
className="w-full text-left px-4 py-1.5 hover:bg-blue-500 hover:text-white transition-colors flex items-center gap-3 text-sm"
|
| 60 |
>
|
| 61 |
<Icon size={16} weight="regular" />
|