forked from github/cinny
Add option for voice rooms, which for now sets the default selected
option in the creation modal
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user