Add option for voice rooms, which for now sets the default selected

option in the creation modal
This commit is contained in:
Tymek
2026-02-14 18:14:39 +01:00
parent 34bccf6bf9
commit 31e4a02d27
4 changed files with 22 additions and 8 deletions

View File

@@ -28,7 +28,8 @@ type CreateRoomModalProps = {
state: CreateRoomModalState;
};
function CreateRoomModal({ state }: CreateRoomModalProps) {
const { spaceId } = state;
const { spaceId, voice } = state;
console.log({ voice });
const closeDialog = useCloseCreateRoomModal();
const allJoinedRooms = useAllJoinedRoomsSet();
@@ -74,7 +75,7 @@ function CreateRoomModal({ state }: CreateRoomModalProps) {
direction="Column"
gap="500"
>
<CreateRoomForm space={space} onCreate={closeDialog} />
<CreateRoomForm space={space} onCreate={closeDialog} defaultVoice={voice} />
</Box>
</Scroll>
</Box>