diff --git a/packages/web/src/components/voice/VoiceModContextMenu.tsx b/packages/web/src/components/voice/VoiceModContextMenu.tsx index a370d5b5..1f4e7beb 100644 --- a/packages/web/src/components/voice/VoiceModContextMenu.tsx +++ b/packages/web/src/components/voice/VoiceModContextMenu.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useLayoutEffect, useRef } from 'react'; +import React, { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react'; import ReactDOM from 'react-dom'; import { useVoiceStore } from '../../stores/voiceStore'; import { useSpaceStore, getChannelOrigin } from '../../stores/spaceStore'; @@ -85,20 +85,111 @@ export function VoiceModMenuItems({ targetUserId, channelId, onAction }: VoiceMo )} {canMoveMembers && otherVoiceChannels.length > 0 && ( - <> -
-
- Move to... -
- {otherVoiceChannels.map((ch) => ( - + {open && ReactDOM.createPortal( +
+ {channels.map((ch) => ( + ))} - +
, + document.body, )} );