Files
calendar/packages/app-store/ee/routing_forms/components/RoutingShell.tsx
T
Peer RichelsenGitHubHariom Balharakodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
18389f459d minor improvements to routing forms (#3380)
* minor improvements to routing forms

* UX improvements and text changes

Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-07-15 11:46:05 +00:00

26 lines
717 B
TypeScript

import { ReactNode } from "react";
import Shell from "@components/Shell";
import RoutingNavBar from "../components/RoutingNavBar";
import { getSerializableForm } from "../utils";
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;