From 00f19bd654697b567ceb9874c2c6214265c375b5 Mon Sep 17 00:00:00 2001 From: nicolas Date: Fri, 11 Jun 2021 02:29:43 +0200 Subject: [PATCH] Added integration to UI --- pages/integrations/index.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pages/integrations/index.tsx b/pages/integrations/index.tsx index d732eee1cb..0bc98b09c5 100644 --- a/pages/integrations/index.tsx +++ b/pages/integrations/index.tsx @@ -10,7 +10,6 @@ import {InformationCircleIcon} from '@heroicons/react/outline'; export default function Home({ integrations }) { const [session, loading] = useSession(); const [showAddModal, setShowAddModal] = useState(false); - if (loading) { return

Loading...

; } @@ -39,7 +38,7 @@ export default function Home({ integrations }) { Add new integration -
+
{integrations.filter( (ig) => ig.credential ).length !== 0 ?
    {integrations.filter(ig => ig.credential).map( (ig) => (
  • @@ -220,6 +219,13 @@ export async function getServerSideProps(context) { title: "Office 365 / Outlook.com Calendar", imageSrc: "integrations/office-365.png", description: "For personal and business accounts", + }, { + installed: !!(process.env.ZOOM_CLIENT_ID && process.env.ZOOM_CLIENT_SECRET), + type: "zoom", + credential: credentials.find( (integration) => integration.type === "zoom" ) || null, + title: "Zoom", + imageSrc: "integrations/zoom.png", + description: "For personal and business accounts", } ]; return {