diff --git a/apps/web/pages/event-types/[type].tsx b/apps/web/pages/event-types/[type].tsx index 25e08ccf63..707e7d0cdf 100644 --- a/apps/web/pages/event-types/[type].tsx +++ b/apps/web/pages/event-types/[type].tsx @@ -39,6 +39,7 @@ 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"; @@ -259,7 +260,7 @@ const EventTypePage = (props: inferSSRProps) => { {...locationFormMethods.register("locationAddress")} id="address" required - className="focus:border-primary-500 focus:ring-primary-500 block w-full rounded-sm border-gray-300 shadow-sm sm:text-sm" + className="block w-full border-gray-300 rounded-sm shadow-sm focus:border-primary-500 focus:ring-primary-500 sm:text-sm" defaultValue={ formMethods .getValues("locations") @@ -389,7 +390,7 @@ const EventTypePage = (props: inferSSRProps) => { options={locationOptions} isSearchable={false} classNamePrefix="react-select" - 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" + 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" onChange={(e) => { if (e?.value) { locationFormMethods.setValue("locationType", e.value); @@ -407,25 +408,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 && ( -
+
@@ -454,7 +455,7 @@ const EventTypePage = (props: inferSSRProps) => {
)} {location.type === LocationType.Huddle01 && ( -
+
) => {
)} {location.type === LocationType.Zoom && ( -
+
@@ -554,7 +555,7 @@ const EventTypePage = (props: inferSSRProps) => {
)} {location.type === LocationType.Tandem && ( -
+
) => {
)} {location.type === LocationType.Jitsi && ( -
+
@@ -608,11 +609,11 @@ const EventTypePage = (props: inferSSRProps) => {
@@ -623,7 +624,7 @@ const EventTypePage = (props: inferSSRProps) => {
  • @@ -1056,8 +1057,8 @@ const EventTypePage = (props: inferSSRProps) => { )} /> -
    -
    +
    +
    @@ -1082,7 +1083,7 @@ const EventTypePage = (props: inferSSRProps) => { @@ -1182,7 +1183,7 @@ const EventTypePage = (props: inferSSRProps) => {
    -
    +
    @@ -1223,20 +1224,20 @@ const EventTypePage = (props: inferSSRProps) => { <>
    -
    +
    -
    +
    -
    +
    { setRequirePayment(event.target.checked); @@ -1247,7 +1248,7 @@ const EventTypePage = (props: inferSSRProps) => { id="requirePayment" name="requirePayment" type="checkbox" - className="text-primary-600 focus:ring-primary-500 h-4 w-4 rounded border-gray-300" + className="w-4 h-4 border-gray-300 rounded text-primary-600 focus:ring-primary-500" defaultChecked={requirePayment} />
    @@ -1270,7 +1271,7 @@ const EventTypePage = (props: inferSSRProps) => {
    {requirePayment && (
    -
    +
    ) => { min="0.5" type="number" required - className="focus:border-primary-500 focus:ring-primary-500 block w-full rounded-sm border-gray-300 pl-2 pr-12 sm:text-sm" + className="block w-full pl-2 pr-12 border-gray-300 rounded-sm focus:border-primary-500 focus:ring-primary-500 sm:text-sm" placeholder="Price" onChange={(e) => { field.onChange(e.target.valueAsNumber * 100); @@ -1293,7 +1294,7 @@ const EventTypePage = (props: inferSSRProps) => { /> )} /> -
    +
    {new Intl.NumberFormat("en", { style: "currency", @@ -1318,7 +1319,7 @@ const EventTypePage = (props: inferSSRProps) => { {/* )} */} -
    +
    @@ -1351,8 +1352,8 @@ const EventTypePage = (props: inferSSRProps) => { href={permalink} target="_blank" rel="noreferrer" - className="text-md inline-flex items-center rounded-sm px-2 py-1 text-sm font-medium text-neutral-700 hover:bg-gray-200 hover:text-gray-900"> -
    -
    +
    -
    - +
    +