From 892d3f7dd45e48db4522095d4c2502f6b4faa3c8 Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Fri, 21 Jan 2022 22:54:09 -0800 Subject: [PATCH] q works now for creating a insta room --- components/Dashboard/Rooms.tsx | 3 - components/Modals/CreateOrUpdateRoom.tsx | 431 ++++++++++++----------- 2 files changed, 230 insertions(+), 204 deletions(-) diff --git a/components/Dashboard/Rooms.tsx b/components/Dashboard/Rooms.tsx index c9a343e..ab1e81d 100644 --- a/components/Dashboard/Rooms.tsx +++ b/components/Dashboard/Rooms.tsx @@ -376,9 +376,6 @@ export default function DashboardRoom() { title={"Press q to create an instant room if you have GSuite."} > - - - ) : ( - - Link - {roomLink ? ( - - Please make sure this is valid so that your team can join - properly. - - ) : ( - - - Click here to create one - {" "} - and then come back and paste the link for your team.{" "} + +
+ {hasGSuite ? ( + + Link + + We'll create a link for you. Don't have a GSuite?{" "} - )} - - setRoomLink(e.target.value)} - /> - - )} - - - Room Name - - Be specific enough, everyone down the hall will see this. - - setRoomName(e.target.value)} - /> - - - {/* room type selection */} - - Type - - setRoomType(event.target.value)} - > - {RoomType.now} - - {RoomType.scheduled} - - - {RoomType.recurring} - - - - {roomType == RoomType.recurring ? ( - - - Approximate Slot - - Sometimes you don't have a specific time or want to - propose a rough period. - - setRoomAppxDateTime(e.target.value)} - /> - - + ) : ( - <> + + Link + {roomLink ? ( + + Please make sure this is valid so that your team can join + properly. + + ) : ( + + + Click here to create one + {" "} + and then come back and paste the link for your team.{" "} + + + )} + + setRoomLink(e.target.value)} + /> + )} - {roomType == RoomType.scheduled ? ( - - Specific Time - {/* + Room Name + + Be specific enough, everyone down the hall will see this. + + setRoomName(e.target.value)} + /> + + + {/* room type selection */} + + Type + + setRoomType(event.target.value)} + > + {RoomType.now} + + {RoomType.scheduled} + + + {RoomType.recurring} + + + + {roomType == RoomType.recurring ? ( + + + Approximate Slot + + Sometimes you don't have a specific time or want to + propose a rough period. + + setRoomAppxDateTime(e.target.value)} + /> + + + ) : ( + <> + )} + + {roomType == RoomType.scheduled ? ( + + Specific Time + {/* */} - - - ) : ( - <> - )} - - - {/* people selection */} - - - People - {/* team or personal */} - - - - Visible} - unCheckedChildren={Private} + - - - Team sees this room. + + ) : ( + <> + )} + + + {/* people selection */} + + + People + {/* team or personal */} + + + + Visible} + unCheckedChildren={Private} + /> + + + Team sees this room. + + + + Optional - Add any mandatory attendees you want or just tell them + later. + + {MemberSelection()} - - Optional - Add any mandatory attendees you want or just tell them - later. - - {MemberSelection()} - + {showMoreDetails ? ( + <> + - {showMoreDetails ? ( - <> - + + + Agenda + + Optional + +