* migration + migrate booking limit page to team settings * new pages * use settings toggle for displaying content * get current team presets * update mutation * i18n for settings page * remove redudant await * cancelation UI for select * handle other selection * extract into a util * inital cancelation reason flow * fix i18n to be more readable * add cancel reason logic * nits * improve copy * ensure is teamMember and not isAdmin for getting internalNotes * improvie spacing between elements * fix types * more type fixes * correct types * Update packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.ts * use input component and remove mb-2 to allign with icon button * Update packages/trpc/server/routers/viewer/teams/updateInternalNotesPresets.handler.ts Co-authored-by: Eunjae Lee <hey@eunjae.dev> * nits * type fixs * fix type * fix type * fix nullable option lost in merge --------- Co-authored-by: Eunjae Lee <hey@eunjae.dev>
28 lines
846 B
TypeScript
28 lines
846 B
TypeScript
import { withAppDirSsr } from "app/WithAppDirSsr";
|
|
import type { PageProps } from "app/_types";
|
|
import { _generateMetadata } from "app/_utils";
|
|
import { cookies, headers } from "next/headers";
|
|
|
|
import { buildLegacyCtx } from "@lib/buildLegacyCtx";
|
|
import { getServerSideProps } from "@lib/signup/getServerSideProps";
|
|
|
|
import type { SignupProps } from "~/signup-view";
|
|
import Signup from "~/signup-view";
|
|
|
|
export const generateMetadata = async () =>
|
|
await _generateMetadata(
|
|
(t) => t("sign_up"),
|
|
(t) => t("sign_up")
|
|
);
|
|
|
|
const getData = withAppDirSsr<SignupProps>(getServerSideProps);
|
|
|
|
const ServerPage = async ({ params, searchParams }: PageProps) => {
|
|
const context = buildLegacyCtx(headers(), cookies(), params, searchParams);
|
|
|
|
const props = await getData(context);
|
|
return <Signup {...props} />;
|
|
};
|
|
|
|
export default ServerPage;
|