Skip to content

Commit

Permalink
refactor: event setup tab web wrapper (calcom#16672)
Browse files Browse the repository at this point in the history
* chore: EventTypeWebWrapper base pr

* fixup! chore: EventTypeWebWrapper base pr

* fixup! Merge branch 'main' into morgan/cal-4183-eventtypeatom-web-wrapper-base

* wip

* fix: error

* Event type atom wrapper handles app dir

* fixup! Merge branch 'main' into morgan/cal-4183-eventtypeatom-web-wrapper-base

* fixup! fixup! Merge branch 'main' into morgan/cal-4183-eventtypeatom-web-wrapper-base

* remove console log

* refactor: event-type-atom (setup tab)

* review comments

* update: better naming

* fixup! review comments

* revert: defaultMenuIsOpen --will create a separate PR

---------

Co-authored-by: Morgan Vernay <[email protected]>
Co-authored-by: Morgan <[email protected]>
  • Loading branch information
3 people authored Sep 18, 2024
1 parent a9ebb0d commit abb4fd3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@ import { slugify } from "@calcom/lib/slugify";
import turndown from "@calcom/lib/turndownService";
import { Label, Select, SettingsToggle, Skeleton, TextField, Editor } from "@calcom/ui";

export const EventSetupTab = (
props: Pick<
EventTypeSetupProps,
"eventType" | "locationOptions" | "team" | "teamMembers" | "destinationCalendar"
>
) => {
export type EventSetupTabProps = Pick<
EventTypeSetupProps,
"eventType" | "locationOptions" | "team" | "teamMembers" | "destinationCalendar"
>;
export const EventSetupTab = (props: EventSetupTabProps) => {
const { t } = useLocale();
const formMethods = useFormContext<FormValues>();
const { eventType, team } = props;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import type { EventSetupTabProps } from "@calcom/features/eventtypes/components/tabs/setup/EventSetupTab";
import { EventSetupTab } from "@calcom/features/eventtypes/components/tabs/setup/EventSetupTab";

const EventSetupTabWebWrapper = (props: EventSetupTabProps) => {
return <EventSetupTab {...props} />;
};

export default EventSetupTabWebWrapper;
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const AssignmentWarningDialog = dynamic(

const EventSetupTab = dynamic(() =>
// import web wrapper when it's ready
import("@calcom/features/eventtypes/components/tabs/setup/EventSetupTab").then((mod) => mod.EventSetupTab)
import("./EventSetupTabWebWrapper").then((mod) => mod)
);

const EventAvailabilityTab = dynamic(() =>
Expand Down

0 comments on commit abb4fd3

Please sign in to comment.