From 8d893d3ed14a571c3b18b3882101ecc97637ccf6 Mon Sep 17 00:00:00 2001 From: alannnc Date: Mon, 13 Jun 2022 15:06:12 -0600 Subject: [PATCH] Fix/app multiple installs (#3045) * Add new flag for apps with multiple installs * WIP saving work in progress * Fix typo in metadata property * Update apps/web/components/App.tsx Co-authored-by: Leo Giovanetti * Using category in pref of new variable on metadata * Update App.tsx * Update yarn.lock * Update yarn.lock Co-authored-by: Leo Giovanetti Co-authored-by: zomars --- apps/web/components/App.tsx | 12 ++-- packages/types/App.d.ts | 2 +- yarn.lock | 115 ++++++++++++++++++++++-------------- 3 files changed, 77 insertions(+), 52 deletions(-) diff --git a/apps/web/components/App.tsx b/apps/web/components/App.tsx index fb8912b49d..9abb8aab85 100644 --- a/apps/web/components/App.tsx +++ b/apps/web/components/App.tsx @@ -1,12 +1,12 @@ import { BookOpenIcon, + CheckIcon, DocumentTextIcon, ExternalLinkIcon, FlagIcon, MailIcon, - ShieldCheckIcon, PlusIcon, - CheckIcon, + ShieldCheckIcon, } from "@heroicons/react/outline"; import { ChevronLeftIcon } from "@heroicons/react/solid"; import Link from "next/link"; @@ -89,6 +89,7 @@ export default function App({ } getInstalledApp(type); }, [type]); + const allowedMultipleInstalls = categories.indexOf("calendar") > -1; return ( <> @@ -101,10 +102,7 @@ export default function App({
- { - // eslint-disable-next-line @next/next/no-img-element - {name} - } + {name}

{name}

@@ -115,7 +113,7 @@ export default function App({
{!isLoading ? ( - isGlobal || installedAppCount > 0 ? ( + isGlobal || (installedAppCount > 0 && allowedMultipleInstalls) ? (