perf: Create 'heavy' eventTypes router (#23664)

* perf: Create 'heavy' eventTypes router

* Fixing type checks

* Fixing platform libraries imports
This commit is contained in:
Keith Williams authored and GitHub committed 2025-09-08 08:24:30 +00:00
1 parent 411a14dd3d
commit 86dcd6f0ff
33 files changed
+107 -75

No files matched your search

@@ -70,7 +70,7 @@ const DuplicateDialog = () => {
}
}, [searchParams?.get("dialog")]);
const duplicateMutation = trpc.viewer.eventTypes.duplicate.useMutation({
const duplicateMutation = trpc.viewer.eventTypes.heavy.duplicate.useMutation({
onSuccess: async ({ eventType }) => {
await router.replace(`/event-types/${eventType.id}`);
+1 -1
View File
@@ -178,7 +178,7 @@ export type LocationFormValues = Pick<FormValues, "id" | "locations" | "bookingF
export type EventTypeAssignedUsers = RouterOutputs["viewer"]["eventTypes"]["get"]["eventType"]["children"];
export type EventTypeHosts = RouterOutputs["viewer"]["eventTypes"]["get"]["eventType"]["hosts"];
export type EventTypeUpdateInput = RouterInputs["viewer"]["eventTypes"]["update"];
export type EventTypeUpdateInput = RouterInputs["viewer"]["eventTypes"]["heavy"]["update"];
export type TabMap = {
advanced: React.ReactNode;
ai?: React.ReactNode;