c3fbf8224b
* Add Embed ModalBox for routing forms * Add duplicate form support * Fix duplication logic * Change to feathericons everywhere and other fixes * Dont allow routes for fallback route * Fix all TS issues * Fix tests * Support routing using query params * Support multiselect in router endpoint * Fix the issue where app goes in embed mode after viewing embed once * Add router url tests * Add Responses download and form toggling tests * Add required validation test * Change Icons everywhere * App typeform app * Improvements in cli * Add typeform how-to-use page * Add typeform how-to-use page and screenshots * Fix TS error * Add missing image * Update CliApp.tsx * Revert unexpected zapier change * Revert yarn.lock, not sure why it was modified Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
26 lines
734 B
TypeScript
26 lines
734 B
TypeScript
import { ReactNode } from "react";
|
|
|
|
import Shell from "@calcom/ui/Shell";
|
|
|
|
import RoutingNavBar from "../components/RoutingNavBar";
|
|
import { getSerializableForm } from "../lib/getSerializableForm";
|
|
|
|
const RoutingShell: React.FC<{
|
|
form: ReturnType<typeof getSerializableForm>;
|
|
heading: ReactNode;
|
|
appUrl: string;
|
|
children: ReactNode;
|
|
}> = function RoutingShell({ children, form, heading, appUrl }) {
|
|
return (
|
|
<Shell heading={heading} subtitle={form.description || ""}>
|
|
<div className="-mx-4 px-4 sm:px-6 md:-mx-8 md:px-8">
|
|
<div className="bg-gray-50">
|
|
<RoutingNavBar appUrl={appUrl} form={form} />
|
|
{children}
|
|
</div>
|
|
</div>
|
|
</Shell>
|
|
);
|
|
};
|
|
export default RoutingShell;
|