feat: make branding hideable in the new booker (#9033)

* feat: make branding hideable

* fix: typo
This commit is contained in:
Nafees Nazik authored and GitHub committed 2023-05-22 21:54:43 +00:00
1 parent def80ea4cf
commit 4111f78431
3 files changed
+41 -8

No files matched your search

+8 -2
View File
@@ -29,7 +29,13 @@ const DatePicker = dynamic(() => import("./components/DatePicker").then((mod) =>
ssr: false,
});
const BookerComponent = ({ username, eventSlug, month, rescheduleBooking }: BookerProps) => {
const BookerComponent = ({
username,
eventSlug,
month,
rescheduleBooking,
hideBranding = false,
}: BookerProps) => {
const { t } = useLocale();
const isMobile = useMediaQuery("(max-width: 768px)");
const isTablet = useMediaQuery("(max-width: 1024px)");
@@ -202,7 +208,7 @@ const BookerComponent = ({ username, eventSlug, month, rescheduleBooking }: Book
"mt-auto mb-6 pt-6 [&_img]:h-[15px]",
layout === "small_calendar" ? "block" : "hidden"
)}>
<PoweredBy logoOnly />
{!hideBranding ? <PoweredBy logoOnly /> : null}
</m.span>
</div>