Skip to content

Commit

Permalink
refactor: move private hook to public
Browse files Browse the repository at this point in the history
  • Loading branch information
supalarry committed Jun 17, 2024
1 parent d412040 commit 09322e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { V2_ENDPOINTS, SUCCESS_STATUS } from "@calcom/platform-constants";
import type { EventTypeOutput_2024_06_14 } from "@calcom/platform-types";
import type { ApiResponse, ApiSuccessResponse } from "@calcom/platform-types";

import http from "../../../lib/http";
import http from "../../lib/http";

export const QUERY_KEY = "use-event-by-id";
export const useEventTypeById = (id: number | null) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/platform/atoms/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export { useAtomsContext } from "./hooks/useAtomsContext";
export { useConnectedCalendars } from "./hooks/useConnectedCalendars";
export { useEventTypes } from "./hooks/event-types/useEventTypes";
export { useEventType as useEvent } from "./hooks/event-types/useEventType";
export { useEventTypeById } from "./hooks/event-types/private/useEventTypeById";
export { useEventTypeById } from "./hooks/event-types/useEventTypeById";
export { useCancelBooking } from "./hooks/useCancelBooking";
export { useGetBooking } from "./hooks/useGetBooking";
export { useGetBookings } from "./hooks/useGetBookings";
Expand Down
2 changes: 1 addition & 1 deletion packages/platform/atoms/monorepo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export { AvailabilitySettingsWebWrapper as AvailabilitySettings } from "./availa
export { CalProvider } from "./cal-provider/CalProvider";
export { useIsPlatform } from "./hooks/useIsPlatform";
export { useAtomsContext } from "./hooks/useAtomsContext";
export { useEventTypeById } from "./hooks/event-types/private/useEventTypeById";
export { useEventTypeById } from "./hooks/event-types/useEventTypeById";
export { useHandleBookEvent } from "./hooks/useHandleBookEvent";
export * as Dialog from "./src/components/ui/dialog";
export { Timezone } from "./timezone";

0 comments on commit 09322e8

Please sign in to comment.