diff --git a/components/ui/Button.tsx b/components/ui/Button.tsx index 054bbd6699..b39ae11d40 100644 --- a/components/ui/Button.tsx +++ b/components/ui/Button.tsx @@ -1,15 +1,26 @@ -import { useState } from 'react'; - export default function Button(props) { - return( - ); } diff --git a/pages/[user].tsx b/pages/[user].tsx index 8be933b0eb..209b213b8d 100644 --- a/pages/[user].tsx +++ b/pages/[user].tsx @@ -14,7 +14,7 @@ export default function User(props): User { const eventTypes = props.eventTypes.map((type) => (
+ className="group relative dark:bg-neutral-900 dark:border-0 dark:hover:border-neutral-600 bg-white hover:bg-gray-50 border border-neutral-200 hover:border-black rounded-sm"> @@ -22,21 +22,24 @@ export default function User(props): User {
-
@@ -45,7 +48,7 @@ export default function User(props): User { )); return ( isReady && ( -
+
{props.user.name || props.user.username} | Calendso diff --git a/pages/[user]/book.tsx b/pages/[user]/book.tsx index 22ceaab0f8..3e4da54d0d 100644 --- a/pages/[user]/book.tsx +++ b/pages/[user]/book.tsx @@ -15,8 +15,8 @@ import Avatar from "../../components/Avatar"; import Button from "../../components/ui/Button"; import { EventTypeCustomInputType } from "../../lib/eventTypeInput"; import Theme from "@components/Theme"; -import { ReactMultiEmail, isEmail } from 'react-multi-email'; -import 'react-multi-email/style.css'; +import { ReactMultiEmail } from "react-multi-email"; +import "react-multi-email/style.css"; dayjs.extend(utc); dayjs.extend(timezone); @@ -161,9 +161,9 @@ export default function Book(props: any): JSX.Element {
-
+
-
+

{props.user.name}

@@ -179,7 +179,7 @@ export default function Book(props: any): JSX.Element { {locationInfo(selectedLocation).address}

)} -

+

{preferredTimeZone && dayjs(date) @@ -200,7 +200,7 @@ export default function Book(props: any): JSX.Element { name="name" id="name" required - className="shadow-sm dark:bg-gray-700 dark:text-white dark:border-gray-900 focus:ring-black focus:border-black block w-full sm:text-sm border-gray-300 rounded-md" + className="shadow-sm dark:bg-black dark:text-white dark:border-gray-900 focus:ring-black focus:border-black block w-full sm:text-sm border-gray-300 rounded-md" placeholder="John Doe" defaultValue={props.booking ? props.booking.attendees[0].name : ""} /> @@ -218,7 +218,7 @@ export default function Book(props: any): JSX.Element { name="email" id="email" required - className="shadow-sm dark:bg-gray-700 dark:text-white dark:border-gray-900 focus:ring-black focus:border-black block w-full sm:text-sm border-gray-300 rounded-md" + className="shadow-sm dark:bg-black dark:text-white dark:border-gray-900 focus:ring-black focus:border-black block w-full sm:text-sm border-gray-300 rounded-md" placeholder="you@example.com" defaultValue={props.booking ? props.booking.attendees[0].email : ""} /> @@ -260,7 +260,7 @@ export default function Book(props: any): JSX.Element { placeholder="Enter phone number" id="phone" required - className="shadow-sm dark:bg-gray-700 dark:text-white dark:border-gray-900 focus:ring-black focus:border-black block w-full sm:text-sm border-gray-300 rounded-md" + className="shadow-sm dark:bg-black dark:text-white dark:border-gray-900 focus:ring-black focus:border-black block w-full sm:text-sm border-gray-300 rounded-md" onChange={() => { /* DO NOT REMOVE: Callback required by PhoneInput, comment added to satisfy eslint:no-empty-function */ }} @@ -286,7 +286,7 @@ export default function Book(props: any): JSX.Element { id={"custom_" + input.id} required={input.required} rows={3} - className="shadow-sm dark:bg-gray-700 dark:text-white dark:border-gray-900 focus:ring-black focus:border-black block w-full sm:text-sm border-gray-300 rounded-md" + className="shadow-sm dark:bg-black dark:text-white dark:border-gray-900 focus:ring-black focus:border-black block w-full sm:text-sm border-gray-300 rounded-md" placeholder="" /> )} @@ -296,7 +296,7 @@ export default function Book(props: any): JSX.Element { name={"custom_" + input.id} id={"custom_" + input.id} required={input.required} - className="shadow-sm dark:bg-gray-700 dark:text-white dark:border-gray-900 focus:ring-black focus:border-black block w-full sm:text-sm border-gray-300 rounded-md" + className="shadow-sm dark:bg-black dark:text-white dark:border-gray-900 focus:ring-black focus:border-black block w-full sm:text-sm border-gray-300 rounded-md" placeholder="" /> )} @@ -306,7 +306,7 @@ export default function Book(props: any): JSX.Element { name={"custom_" + input.id} id={"custom_" + input.id} required={input.required} - className="shadow-sm dark:bg-gray-700 dark:text-white dark:border-gray-900 focus:ring-black focus:border-black block w-full sm:text-sm border-gray-300 rounded-md" + className="shadow-sm dark:bg-black dark:text-white dark:border-gray-900 focus:ring-black focus:border-black block w-full sm:text-sm border-gray-300 rounded-md" placeholder="" /> )} @@ -316,7 +316,7 @@ export default function Book(props: any): JSX.Element { type="checkbox" name={"custom_" + input.id} id={"custom_" + input.id} - className="focus:ring-black h-4 w-4 text-blue-600 border-gray-300 rounded mr-2" + className="focus:ring-black h-4 w-4 text-black border-gray-300 rounded mr-2" placeholder="" />

- {!guestToggle && - - - } - { - guestToggle && - + + Additional Guests + + )} + {guestToggle && ( + { setGuestEmails(_emails); }} - getLabel={( - email: string, - index: number, - removeEmail: (index: number) => void - ) => { + getLabel={(email: string, index: number, removeEmail: (index: number) => void) => { return (
{email} @@ -360,10 +354,9 @@ export default function Book(props: any): JSX.Element {
); }} - /> - } - -
+ /> + )} +

- - Cancel + Cancel
@@ -452,8 +446,12 @@ export async function getServerSideProps(context) { }, }); - const eventTypeObject = [eventType].map(e => { - return ({...e, periodStartDate:e.periodStartDate?.toString() ?? null, periodEndDate:e.periodEndDate?.toString() ?? null,}) + const eventTypeObject = [eventType].map((e) => { + return { + ...e, + periodStartDate: e.periodStartDate?.toString() ?? null, + periodEndDate: e.periodEndDate?.toString() ?? null, + }; })[0]; let booking = null;