From 8302990f846c2fef0f9894074e5e2debf00e7d6d Mon Sep 17 00:00:00 2001 From: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> Date: Tue, 3 Jan 2023 01:14:51 +0530 Subject: [PATCH] fix: use hasMounted to render calcom versionm (#6239) * fix: use hasMounted to render calcom versionm Signed-off-by: Udit Takkar * added Credits component but struggling with import * only made it work with v2 folder. sorry jerone * added link to releases * added link to cal.com * removing script calcomversion for now until we need it Signed-off-by: Udit Takkar Co-authored-by: Peer Richelsen Co-authored-by: Peer Richelsen --- apps/web/components/ui/AuthContainer.tsx | 9 +++--- apps/web/pages/_app.tsx | 5 ---- packages/lib/constants.ts | 4 --- packages/ui/v2/core/Credits.tsx | 35 ++++++++++++++++++++++++ packages/ui/v2/core/Shell.tsx | 16 +++-------- 5 files changed, 43 insertions(+), 26 deletions(-) create mode 100644 packages/ui/v2/core/Credits.tsx diff --git a/apps/web/components/ui/AuthContainer.tsx b/apps/web/components/ui/AuthContainer.tsx index 241f77946a..75d02d7767 100644 --- a/apps/web/components/ui/AuthContainer.tsx +++ b/apps/web/components/ui/AuthContainer.tsx @@ -1,11 +1,12 @@ import classNames from "classnames"; -import React from "react"; -import { APP_NAME, LOGO, COMPANY_NAME, CalComVersion } from "@calcom/lib/constants"; +import { APP_NAME, LOGO } from "@calcom/lib/constants"; import Loader from "@components/Loader"; import { HeadSeo } from "@components/seo/head-seo"; +import Credits from "../../../../packages/ui/v2/core/Credits"; + interface Props { title: string; description: string; @@ -38,9 +39,7 @@ export default function AuthContainer(props: React.PropsWithChildren) {
{props.footerText} - - © {new Date().getFullYear()} {COMPANY_NAME} {CalComVersion} - +
diff --git a/apps/web/pages/_app.tsx b/apps/web/pages/_app.tsx index b65b54961f..f3d7a12b84 100644 --- a/apps/web/pages/_app.tsx +++ b/apps/web/pages/_app.tsx @@ -5,7 +5,6 @@ import superjson from "superjson"; import "@calcom/embed-core/src/embed-iframe"; import LicenseRequired from "@calcom/features/ee/common/components/LicenseRequired"; -import { CalComVersion } from "@calcom/lib/constants"; import { httpBatchLink } from "@calcom/trpc/client/links/httpBatchLink"; import { httpLink } from "@calcom/trpc/client/links/httpLink"; import { loggerLink } from "@calcom/trpc/client/links/loggerLink"; @@ -43,10 +42,6 @@ function MyApp(props: AppProps) { -