diff --git a/packages/features/bookings/Booker/Booker.tsx b/packages/features/bookings/Booker/Booker.tsx index e4145236b0..341432616e 100644 --- a/packages/features/bookings/Booker/Booker.tsx +++ b/packages/features/bookings/Booker/Booker.tsx @@ -1,4 +1,5 @@ import { LazyMotion, domAnimation, m, AnimatePresence } from "framer-motion"; +import dynamic from "next/dynamic"; import { useCallback, useEffect, useRef } from "react"; import StickyBox from "react-sticky-box"; import { shallow } from "zustand/shallow"; @@ -7,7 +8,7 @@ import classNames from "@calcom/lib/classNames"; import useGetBrandingColours from "@calcom/lib/getBrandColours"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import useMediaQuery from "@calcom/lib/hooks/useMediaQuery"; -import { Logo, ToggleGroup, useCalcomTheme } from "@calcom/ui"; +import { ToggleGroup, useCalcomTheme } from "@calcom/ui"; import { Calendar, Columns, Grid } from "@calcom/ui/components/icon"; import { AvailableTimeSlots } from "./components/AvailableTimeSlots"; @@ -24,6 +25,8 @@ import { useBookerStore, useInitializeBookerStore } from "./store"; import type { BookerLayout, BookerProps } from "./types"; import { useEvent } from "./utils/event"; +const PoweredBy = dynamic(() => import("@calcom/ee/components/PoweredBy")); + const useBrandColors = ({ brandColor, darkBrandColor }: { brandColor?: string; darkBrandColor?: string }) => { const brandTheme = useGetBrandingColours({ lightVal: brandColor, @@ -205,8 +208,11 @@ const BookerComponent = ({ username, eventSlug, month, rescheduleBooking }: Book - + className={classNames( + "mt-auto mb-6 pt-6 [&_img]:h-[15px]", + layout === "small_calendar" ? "block" : "hidden" + )}> + diff --git a/packages/features/ee/components/PoweredBy.tsx b/packages/features/ee/components/PoweredBy.tsx index 6927a7baa2..f6eac895dc 100644 --- a/packages/features/ee/components/PoweredBy.tsx +++ b/packages/features/ee/components/PoweredBy.tsx @@ -5,7 +5,7 @@ import { useIsEmbed } from "@calcom/embed-core/embed-iframe"; import { APP_NAME, POWERED_BY_URL } from "@calcom/lib/constants"; import { useLocale } from "@calcom/lib/hooks/useLocale"; -const PoweredByCal = () => { +const PoweredByCal = ({ logoOnly }: { logoOnly?: boolean }) => { const { t } = useLocale(); const session = useSession(); const isEmbed = useIsEmbed(); @@ -13,23 +13,18 @@ const PoweredByCal = () => { return (
- - {t("powered_by")}{" "} + + {!logoOnly && <>{t("powered_by")} } {APP_NAME === "Cal.com" || !hasValidLicense ? ( <> Cal.com Logo - Cal.com Logo ) : ( - {APP_NAME} + {APP_NAME} )}