diff --git a/client/landing/stepper/declarative-flow/internals/steps-repository/components/calendy-widget/index.tsx b/client/landing/stepper/declarative-flow/internals/steps-repository/components/calendy-widget/index.tsx index 4a0905d19ae1c0..627c6ac05e2a33 100644 --- a/client/landing/stepper/declarative-flow/internals/steps-repository/components/calendy-widget/index.tsx +++ b/client/landing/stepper/declarative-flow/internals/steps-repository/components/calendy-widget/index.tsx @@ -1,25 +1,25 @@ import React, { useEffect, useMemo } from 'react'; +const CALENDLY_SCRIPT_URL = 'https://assets.calendly.com/assets/external/widget.js'; + declare global { interface Window { Calendly: any; } } -interface PrefillData { +type CalendlyPrefillData = { name?: string; email?: string; // Add other prefill fields as needed -} +}; -interface CalendlyWidgetProps { +type CalendlyWidgetProps = { url: string; id?: string; - prefill?: PrefillData; + prefill?: CalendlyPrefillData; onSchedule?: () => void; -} - -const CALENDLY_SCRIPT_URL = 'https://assets.calendly.com/assets/external/widget.js'; +}; function isCalendlyEvent( e: MessageEvent ): boolean { return ( diff --git a/client/landing/stepper/declarative-flow/internals/steps-repository/hundred-year-plan-schedule-appointment/index.tsx b/client/landing/stepper/declarative-flow/internals/steps-repository/hundred-year-plan-schedule-appointment/index.tsx index 92571bb40826a7..f4b2d8dfaa45c0 100644 --- a/client/landing/stepper/declarative-flow/internals/steps-repository/hundred-year-plan-schedule-appointment/index.tsx +++ b/client/landing/stepper/declarative-flow/internals/steps-repository/hundred-year-plan-schedule-appointment/index.tsx @@ -1,3 +1,4 @@ +import config from '@automattic/calypso-config'; import { UserSelect } from '@automattic/data-stores'; import { useSelect } from '@wordpress/data'; import { useTranslate } from 'i18n-calypso'; @@ -9,14 +10,6 @@ import type { Step } from '../../types'; import './styles.scss'; -declare global { - interface Window { - Calendly: any; - } -} - -const CALENDLY_ID = 'tim-broddin-a8c/30min'; - const HundredYearPlanScheduleAppointment: Step = function HundredYearPlanScheduleAppointment( { navigation, flow, @@ -34,12 +27,12 @@ const HundredYearPlanScheduleAppointment: Step = function HundredYearPlanSchedul -
+
// TODO: content
-
+