removed preview of location for in-person or third party link events (#1844)
This commit is contained in:
		
							parent
							
								
									691235f874
								
							
						
					
					
						commit
						2f892a9ec5
					
				
					 2 changed files with 6 additions and 23 deletions
				
			
		| 
						 | 
				
			
			@ -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>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
		Reference in a new issue