diff --git a/package-lock.json b/package-lock.json index 9705209..3585c76 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,8 +7,8 @@ "": { "name": "letsbe-agency", "version": "1.0.0", - "license": "ISC", "dependencies": { + "@calcom/embed-react": "^1.5.3", "@payloadcms/db-postgres": "^3.80.0", "@payloadcms/next": "^3.80.0", "@payloadcms/richtext-lexical": "^3.80.0", @@ -215,6 +215,35 @@ "url": "https://github.com/sponsors/Borewit" } }, + "node_modules/@calcom/embed-core": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/@calcom/embed-core/-/embed-core-1.5.3.tgz", + "integrity": "sha512-GeId9gaByJ5EWiPmuvelZOvFWPOTWkcWZr5vGTCbIUTX125oE5yn0n8lDF1MJk5Xj1WO+/dk9jKIE08Ad9ytiQ==", + "license": "SEE LICENSE IN LICENSE" + }, + "node_modules/@calcom/embed-react": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/@calcom/embed-react/-/embed-react-1.5.3.tgz", + "integrity": "sha512-JCgge04pc8fhdvUmPNVLhW8/lCWK+AAziKecKWWPfv1nn2s+qKP2BwsEAnxhxK9yPOBgE1EIEgmYkrrNB1iajA==", + "license": "SEE LICENSE IN LICENSE", + "dependencies": { + "@calcom/embed-core": "1.5.3", + "@calcom/embed-snippet": "1.3.3" + }, + "peerDependencies": { + "react": "^18.2.0 || ^19.0.0", + "react-dom": "^18.2.0 || ^19.0.0" + } + }, + "node_modules/@calcom/embed-snippet": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@calcom/embed-snippet/-/embed-snippet-1.3.3.tgz", + "integrity": "sha512-pqqKaeLB8R6BvyegcpI9gAyY6Xyx1bKYfWvIGOvIbTpguWyM1BBBVcT9DCeGe8Zw7Ujp5K56ci7isRUrT2Uadg==", + "license": "SEE LICENSE IN LICENSE", + "dependencies": { + "@calcom/embed-core": "1.5.3" + } + }, "node_modules/@date-fns/tz": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@date-fns/tz/-/tz-1.2.0.tgz", diff --git a/package.json b/package.json index b171c1c..67f5554 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "generate:types": "payload generate:types" }, "dependencies": { + "@calcom/embed-react": "^1.5.3", "@payloadcms/db-postgres": "^3.80.0", "@payloadcms/next": "^3.80.0", "@payloadcms/richtext-lexical": "^3.80.0", diff --git a/src/components/configurator/StepComplete.tsx b/src/components/configurator/StepComplete.tsx index 5e1b466..4b74df5 100644 --- a/src/components/configurator/StepComplete.tsx +++ b/src/components/configurator/StepComplete.tsx @@ -5,6 +5,7 @@ import { motion } from 'framer-motion'; import { Calendar, Mail } from 'lucide-react'; import AnimatedCheckmark from '@/components/icons/AnimatedCheckmark'; import Button from '@/components/ui/Button'; +import CalButton from '@/components/ui/CalButton'; import type { WizardFormData } from './WizardContainer'; // ─── Brief Renderer ─────────────────────────────────────────────────────────── @@ -70,26 +71,8 @@ function renderBrief(brief: string) { // ─── Cal.com Embed / Booking ────────────────────────────────────────────────── function BookingSection() { - const calcomUrl = process.env.NEXT_PUBLIC_CALCOM_URL; - - if (calcomUrl) { - return ( -
Book a Consultation
30 minutes to discuss your brief with our team
- +