* Initial commit * routingForm to Booking a particular team member working * Happy path working * Fixes * Fix router query params forwarding * Add basicConfig within app * Tests * More tests * Update packages/app-store/routing-forms/components/SingleForm.tsx Co-authored-by: Omar López <zomars@me.com> --------- Co-authored-by: Omar López <zomars@me.com> Co-authored-by: Benny Joo <sldisek783@gmail.com>
17 lines
516 B
TypeScript
17 lines
516 B
TypeScript
import { Utils as QbUtils } from "react-awesome-query-builder";
|
|
|
|
import type { GlobalRoute, LocalRoute, SerializableRoute } from "../types/types";
|
|
|
|
export const createFallbackRoute = (): Exclude<SerializableRoute, GlobalRoute> => {
|
|
const uuid = QbUtils.uuid();
|
|
return {
|
|
id: uuid,
|
|
isFallback: true,
|
|
action: {
|
|
type: "customPageMessage",
|
|
value: "Thank you for your interest! We will be in touch soon.",
|
|
},
|
|
queryValue: { id: uuid, type: "group" } as LocalRoute["queryValue"],
|
|
};
|
|
};
|