From 6102feec1f659e75740a1fffd97e2fbb3e2b09b0 Mon Sep 17 00:00:00 2001 From: Syed Ali Shahbaz Date: Thu, 5 Aug 2021 10:03:08 +0530 Subject: [PATCH 1/7] improved styling and dark mode for add-guest button --- pages/[user]/book.tsx | 59 ++++++++++++++++++++++------------------ pages/api/book/[user].ts | 2 +- styles/globals.css | 59 +++++++++++++++++++++++++++++++++++++++- 3 files changed, 91 insertions(+), 29 deletions(-) diff --git a/pages/[user]/book.tsx b/pages/[user]/book.tsx index c96c2439..bce1c3ac 100644 --- a/pages/[user]/book.tsx +++ b/pages/[user]/book.tsx @@ -16,7 +16,7 @@ import Button from "../../components/ui/Button"; import { EventTypeCustomInputType } from "../../lib/eventTypeInput"; import Theme from "@components/Theme"; import { ReactMultiEmail, isEmail } from 'react-multi-email'; -import 'react-multi-email/style.css'; +// import 'react-multi-email/style.css'; dayjs.extend(utc); dayjs.extend(timezone); @@ -332,33 +332,38 @@ export default function Book(props: any): JSX.Element { className="block text-sm font-medium dark:text-white text-blue-500 mb-1 hover:cursor-pointer"> + Additional Guests - } - { - guestToggle && - { - setGuestEmails(_emails); - }} - getLabel={( - email: string, - index: number, - removeEmail: (index: number) => void - ) => { - return ( -
- {email} - removeEmail(index)}> - × - -
- ); - }} - /> - } - + {guestToggle && ( +
+ + { + setGuestEmails(_emails); + }} + getLabel={( + email: string, + index: number, + removeEmail: (index: number) => void + ) => { + return ( +
+ {email} + removeEmail(index)}> + × + +
+ ); + }} + /> +
+ )} +
- + Contact us
From 588265a3dc66e5c78589f42716541f21c7625a89 Mon Sep 17 00:00:00 2001 From: nicolas Date: Sat, 7 Aug 2021 08:09:08 +0200 Subject: [PATCH 6/7] Use user-managed app for zoom instead --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8b1901e6..78149e12 100644 --- a/README.md +++ b/README.md @@ -235,7 +235,7 @@ Contributions are what make the open source community such an amazing place to b 8. Now copy the Client ID and Client Secret to your .env file into the `ZOOM_CLIENT_ID` and `ZOOM_CLIENT_SECRET` fields. 9. Set the Redirect URL for OAuth `/api/integrations/zoomvideo/callback` replacing CALENDSO URL with the URI at which your application runs. 10. Also add the redirect URL given above as a whitelist URL and enable "Subdomain check". Make sure, it says "saved" below the form. -11. You don't need to provide basic information about your app. Instead click at "Scopes" and then at "+ Add Scopes". Search for and check the scope `meeting:write`. +11. You don't need to provide basic information about your app. Instead click at "Scopes" and then at "+ Add Scopes". On the left, click the category "Meeting" and check the scope `meeting:write`. 12. Click "Done". 13. You're good to go. Now you can easily add your Zoom integration in the Calendso settings. From 3bfee8a7bf4aeca7ec2f6ca35078fc9fdab93f45 Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Sun, 8 Aug 2021 22:31:08 +0200 Subject: [PATCH 7/7] replaced Loading... with Loader component --- pages/bookings/index.tsx | 3 ++- pages/settings/teams.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/bookings/index.tsx b/pages/bookings/index.tsx index 370eda4a..c48d14ad 100644 --- a/pages/bookings/index.tsx +++ b/pages/bookings/index.tsx @@ -9,6 +9,7 @@ import { Menu, Transition } from "@headlessui/react"; import { DotsHorizontalIcon } from "@heroicons/react/solid"; import classNames from "@lib/classNames"; import { ClockIcon, XIcon } from "@heroicons/react/outline"; +import Loader from "@components/Loader"; export default function Bookings({ bookings }) { // eslint-disable-next-line @typescript-eslint/no-unused-vars @@ -17,7 +18,7 @@ export default function Bookings({ bookings }) { const router = useRouter(); if (loading) { - return

Loading...

; + return ; } async function confirmBookingHandler(booking, confirm: boolean) { diff --git a/pages/settings/teams.tsx b/pages/settings/teams.tsx index 260d06b3..d78299d2 100644 --- a/pages/settings/teams.tsx +++ b/pages/settings/teams.tsx @@ -8,6 +8,7 @@ import { getSession, useSession } from "next-auth/client"; import { UsersIcon } from "@heroicons/react/outline"; import TeamList from "../../components/team/TeamList"; import TeamListItem from "../../components/team/TeamListItem"; +import Loader from "@components/Loader"; export default function Teams() { const [, loading] = useSession(); @@ -38,7 +39,7 @@ export default function Teams() { }, []); if (loading) { - return

Loading...

; + return ; } const createTeam = (e) => {