From 2fd606c38e6b76d643d21f4ee61605cad3be93d9 Mon Sep 17 00:00:00 2001 From: zomars Date: Sat, 26 Nov 2022 06:54:42 -0700 Subject: [PATCH] Fixed circular dependecy that was messing with website --- packages/app-store/_components/AppCard.tsx | 2 +- .../app-store/_components}/OmniInstallAppButton.tsx | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) rename {apps/web/components/apps => packages/app-store/_components}/OmniInstallAppButton.tsx (93%) diff --git a/packages/app-store/_components/AppCard.tsx b/packages/app-store/_components/AppCard.tsx index c935b5cc80..3844b94585 100644 --- a/packages/app-store/_components/AppCard.tsx +++ b/packages/app-store/_components/AppCard.tsx @@ -3,10 +3,10 @@ import Link from "next/link"; import { RouterOutputs } from "@calcom/trpc/react"; import { Switch } from "@calcom/ui"; -import OmniInstallAppButton from "@calcom/web/components/apps/OmniInstallAppButton"; import { SetAppDataGeneric } from "../EventTypeAppContext"; import { eventTypeAppCardZod } from "../eventTypeAppCardZod"; +import OmniInstallAppButton from "./OmniInstallAppButton"; export default function AppCard({ app, diff --git a/apps/web/components/apps/OmniInstallAppButton.tsx b/packages/app-store/_components/OmniInstallAppButton.tsx similarity index 93% rename from apps/web/components/apps/OmniInstallAppButton.tsx rename to packages/app-store/_components/OmniInstallAppButton.tsx index 7f887b5550..4e9a4e7fb9 100644 --- a/apps/web/components/apps/OmniInstallAppButton.tsx +++ b/packages/app-store/_components/OmniInstallAppButton.tsx @@ -1,11 +1,12 @@ -import useAddAppMutation from "@calcom/app-store/_utils/useAddAppMutation"; -import { InstallAppButton } from "@calcom/app-store/components"; import { classNames } from "@calcom/lib"; import useApp from "@calcom/lib/hooks/useApp"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { trpc } from "@calcom/trpc/react"; import { Button, Icon, showToast } from "@calcom/ui"; +import useAddAppMutation from "../_utils/useAddAppMutation"; +import { InstallAppButton } from "../components"; + /** * Use this component to allow installing an app from anywhere on the app. * Use of this component requires you to remove custom InstallAppButtonComponent so that it can manage the redirection itself