* WIP * Fix all TS errors * Move to using isRouter everywhere * wip * Add Router Picker and fix TS issues * Fix tests and add option to connect during duplication * Misc changes * Fixes * Fixes * Fix TS errors * Disable certain options in Router * Fix connected Form fields not updating * Some fixes * reert shell.tsx * Disable already used router instead of removing it * Import prisma from correct place * Simplify loop using Object.entries * SimpliAdd playwright test and fix issues found
17 lines
471 B
TypeScript
17 lines
471 B
TypeScript
import { Utils as QbUtils } from "react-awesome-query-builder";
|
|
|
|
import { GlobalRoute, 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" },
|
|
};
|
|
};
|