From ed40b094307dab1a5e40d7ddcf9e809a68bbd732 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Omar=20L=C3=B3pez?= Date: Mon, 21 Feb 2022 11:45:35 -0700 Subject: [PATCH] Build fixes (#1929) * Build fixes * Fixes type error --- apps/web/pages/event-types/[type].tsx | 163 +++++++++++++------------- 1 file changed, 81 insertions(+), 82 deletions(-) diff --git a/apps/web/pages/event-types/[type].tsx b/apps/web/pages/event-types/[type].tsx index 707e7d0cdf..25e08ccf63 100644 --- a/apps/web/pages/event-types/[type].tsx +++ b/apps/web/pages/event-types/[type].tsx @@ -39,7 +39,6 @@ import prisma from "@lib/prisma"; import { slugify } from "@lib/slugify"; import { trpc } from "@lib/trpc"; import { inferSSRProps } from "@lib/types/inferSSRProps"; -import { slugify } from "@lib/slugify"; import DestinationCalendarSelector from "@components/DestinationCalendarSelector"; import { Dialog, DialogContent, DialogTrigger } from "@components/Dialog"; @@ -260,7 +259,7 @@ const EventTypePage = (props: inferSSRProps) => { {...locationFormMethods.register("locationAddress")} id="address" required - className="block w-full border-gray-300 rounded-sm shadow-sm focus:border-primary-500 focus:ring-primary-500 sm:text-sm" + className="focus:border-primary-500 focus:ring-primary-500 block w-full rounded-sm border-gray-300 shadow-sm sm:text-sm" defaultValue={ formMethods .getValues("locations") @@ -390,7 +389,7 @@ const EventTypePage = (props: inferSSRProps) => { options={locationOptions} isSearchable={false} classNamePrefix="react-select" - className="flex-1 block w-full min-w-0 border border-gray-300 rounded-sm react-select-container focus:border-primary-500 focus:ring-primary-500 sm:text-sm" + className="react-select-container focus:border-primary-500 focus:ring-primary-500 block w-full min-w-0 flex-1 rounded-sm border border-gray-300 sm:text-sm" onChange={(e) => { if (e?.value) { locationFormMethods.setValue("locationType", e.value); @@ -408,25 +407,25 @@ const EventTypePage = (props: inferSSRProps) => { className="mb-2 rounded-sm border border-neutral-300 py-1.5 px-2 shadow-sm">
{location.type === LocationType.InPerson && ( -
- +
+
)} {location.type === LocationType.Phone && ( -
- +
+ {t("phone_call")}
)} {location.type === LocationType.GoogleMeet && ( -
+
@@ -455,7 +454,7 @@ const EventTypePage = (props: inferSSRProps) => {
)} {location.type === LocationType.Huddle01 && ( -
+
) => {
)} {location.type === LocationType.Zoom && ( -
+
@@ -555,7 +554,7 @@ const EventTypePage = (props: inferSSRProps) => {
)} {location.type === LocationType.Tandem && ( -
+
) => {
)} {location.type === LocationType.Jitsi && ( -
+
@@ -609,11 +608,11 @@ const EventTypePage = (props: inferSSRProps) => {
@@ -624,7 +623,7 @@ const EventTypePage = (props: inferSSRProps) => {
  • @@ -1057,8 +1056,8 @@ const EventTypePage = (props: inferSSRProps) => { )} /> -
    -
    +
    +
    @@ -1083,7 +1082,7 @@ const EventTypePage = (props: inferSSRProps) => { @@ -1183,7 +1182,7 @@ const EventTypePage = (props: inferSSRProps) => {
    -
    +
    @@ -1224,20 +1223,20 @@ const EventTypePage = (props: inferSSRProps) => { <>
    -
    +
    -
    +
    -
    +
    { setRequirePayment(event.target.checked); @@ -1248,7 +1247,7 @@ const EventTypePage = (props: inferSSRProps) => { id="requirePayment" name="requirePayment" type="checkbox" - className="w-4 h-4 border-gray-300 rounded text-primary-600 focus:ring-primary-500" + className="text-primary-600 focus:ring-primary-500 h-4 w-4 rounded border-gray-300" defaultChecked={requirePayment} />
    @@ -1271,7 +1270,7 @@ const EventTypePage = (props: inferSSRProps) => {
    {requirePayment && (
    -
    +
    ) => { min="0.5" type="number" required - className="block w-full pl-2 pr-12 border-gray-300 rounded-sm focus:border-primary-500 focus:ring-primary-500 sm:text-sm" + className="focus:border-primary-500 focus:ring-primary-500 block w-full rounded-sm border-gray-300 pl-2 pr-12 sm:text-sm" placeholder="Price" onChange={(e) => { field.onChange(e.target.valueAsNumber * 100); @@ -1294,7 +1293,7 @@ const EventTypePage = (props: inferSSRProps) => { /> )} /> -
    +
    {new Intl.NumberFormat("en", { style: "currency", @@ -1319,7 +1318,7 @@ const EventTypePage = (props: inferSSRProps) => { {/* )} */} -
    +
    @@ -1352,8 +1351,8 @@ const EventTypePage = (props: inferSSRProps) => { href={permalink} target="_blank" rel="noreferrer" - className="inline-flex items-center px-2 py-1 text-sm font-medium rounded-sm text-md text-neutral-700 hover:bg-gray-200 hover:text-gray-900"> -
    -
    +
    -
    - +
    +