Skip to content

Scheduling infrastructure for absolutely everyone.

removed preview of location for in-person or third party link events (#1844)

Peer Richelsen2f892a9ec500
diff --git a/apps/web/components/booking/pages/BookingPage.tsx b/apps/web/components/booking/pages/BookingPage.tsx
index 041e4c461a2..f55013ba180 100644
--- a/apps/web/components/booking/pages/BookingPage.tsx
+++ b/apps/web/components/booking/pages/BookingPage.tsx
@@ -1,10 +1,4 @@
-import {
- CalendarIcon,
- ClockIcon,
- CreditCardIcon,
- ExclamationIcon,
- LocationMarkerIcon,
-} from "@heroicons/react/solid";
+import { CalendarIcon, ClockIcon, CreditCardIcon, ExclamationIcon } from "@heroicons/react/solid";
import { EventTypeCustomInputType } from "@prisma/client";
import { useContracts } from "contexts/contractsContext";
import dayjs from "dayjs";
@@ -330,26 +324,13 @@ const BookingPage = (props: BookingPageProps) => {
</IntlProvider>
</p>
)}
- {selectedLocation === LocationType.InPerson && (
- <p className="mb-2 text-gray-500">
- <LocationMarkerIcon className="mr-1 -mt-1 inline-block h-4 w-4" />
- {getLocationValue({ locationType: selectedLocation })}
- </p>
- )}
- {selectedLocation === LocationType.Jitsi && (
- <p className="mb-2 text-gray-500">
- <LocationMarkerIcon className="mr-1 -mt-1 inline-block h-4 w-4" />
- Jitsi Meet
- </p>
- )}
<p className="mb-4 text-green-500">
<CalendarIcon className="mr-1 -mt-1 inline-block h-4 w-4" />
{parseDate(date)}
</p>
{eventTypeDetail.isWeb3Active && eventType.metadata.smartContractAddress && (
<p className="mb-1 -ml-2 px-2 py-1 text-gray-500">
- Requires ownership of a token belonging to the following address:{" "}
- {eventType.metadata.smartContractAddress}
+ {t("requires_ownership_of_a_token") + " " + eventType.metadata.smartContractAddress}
</p>
)}
<p className="mb-8 text-gray-600 dark:text-white">{props.eventType.description}</p>
@@ -368,7 +349,7 @@ const BookingPage = (props: BookingPageProps) => {
id="name"
required
className="focus:border-brand block w-full rounded-sm border-gray-300 shadow-sm focus:ring-black dark:border-gray-900 dark:bg-black dark:text-white sm:text-sm"
- placeholder="John Doe"
+ placeholder={t("example_name")}
/>
</div>
</div>
diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json
index dcce75d94f3..a603c0ebbf7 100644
--- a/apps/web/public/static/locales/en/common.json
+++ b/apps/web/public/static/locales/en/common.json
@@ -652,5 +652,7 @@
"prisma_studio_tip": "Create an account via Prisma Studio",
"prisma_studio_tip_description": "Learn how to set up your first user",
"contact_sales": "Contact Sales",
- "error_404": "Error 404"
+ "error_404": "Error 404",
+ "requires_ownership_of_a_token": "Requires ownership of a token belonging to the following address:",
+ "example_name": "John Doe"
}
\ No newline at end of file