diff --git a/packages/app-store/ee/routing_forms/pages/routing-link/[...appPages].tsx b/packages/app-store/ee/routing_forms/pages/routing-link/[...appPages].tsx index 756344734c..30de6e3853 100644 --- a/packages/app-store/ee/routing_forms/pages/routing-link/[...appPages].tsx +++ b/packages/app-store/ee/routing_forms/pages/routing-link/[...appPages].tsx @@ -1,4 +1,5 @@ import jsonLogic from "json-logic-js"; +import Head from "next/head"; import { useRouter } from "next/router"; import { useState, useRef, FormEvent } from "react"; import { Utils as QbUtils } from "react-awesome-query-builder"; @@ -93,82 +94,87 @@ function RoutingForm({ form }: inferSSRProps) { }; return !customPageMessage ? ( -
-
-
- + <> + + {form.name} | Cal.com Forms + +
+
+
+ -
-
-

- {form.name} -

- {form.description ? ( -

{form.description}

- ) : null} -
- {form.fields?.map((field) => { - const widget = queryBuilderConfig.widgets[field.type]; - if (!("factory" in widget)) { - return null; - } - const Component = widget.factory; + +
+

+ {form.name} +

+ {form.description ? ( +

{form.description}

+ ) : null} +
+ {form.fields?.map((field) => { + const widget = queryBuilderConfig.widgets[field.type]; + if (!("factory" in widget)) { + return null; + } + const Component = widget.factory; - const optionValues = field.selectText?.trim().split("\n"); - const options = optionValues?.map((value) => { - const title = value; - return { - value, - title, - }; - }); - return ( -
-
- + const optionValues = field.selectText?.trim().split("\n"); + const options = optionValues?.map((value) => { + const title = value; + return { + value, + title, + }; + }); + return ( +
+
+ +
+
+ { + setResponse((response) => { + response = response || {}; + return { + ...response, + [field.id]: { + label: field.label, + value, + }, + }; + }); + }} + /> +
-
- { - setResponse((response) => { - response = response || {}; - return { - ...response, - [field.id]: { - label: field.label, - value, - }, - }; - }); - }} - /> -
-
- ); - })} -
- -
- + ); + })} +
+ +
+ +
-
+ ) : (
@@ -235,9 +241,7 @@ export const getServerSideProps = async function getServerSideProps( prisma: AppPrisma ) { const { params } = context; - console.log("ROUTING LINK"); if (!params) { - console.log(params); return { notFound: true, };