Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { usePathname, useRouter } from "next/navigation";

import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import classNames from "@calcom/ui/classNames";
import { Avatar } from "@calcom/ui/components/avatar";
import type { ButtonColor } from "@calcom/ui/components/button";
import { Button } from "@calcom/ui/components/button";
Expand Down Expand Up @@ -34,6 +35,7 @@ export type CreateBtnProps = {
disableMobileButton?: boolean;
"data-testid"?: string;
color?: ButtonColor;
className?: string;
};

/**
Expand All @@ -53,6 +55,7 @@ export function CreateButton(props: CreateBtnProps) {
buttonText,
disableMobileButton,
subtitle,
className,
...restProps
} = props;
const CreateDialog = createDialog ? createDialog() : null;
Expand Down Expand Up @@ -91,6 +94,7 @@ export function CreateButton(props: CreateBtnProps) {
StartIcon="plus"
loading={isPending}
variant={disableMobileButton ? "button" : "fab"}
className={classNames(disableMobileButton && "md:min-h-min md:min-w-min", className)}
{...restProps}>
{buttonText ? buttonText : t("new")}
</Button>
Expand All @@ -103,6 +107,7 @@ export function CreateButton(props: CreateBtnProps) {
size="sm"
data-testid="create-button-dropdown"
loading={isPending}
className={classNames(disableMobileButton && "md:min-h-min md:min-w-min", className)}
{...restProps}>
{buttonText ? buttonText : t("new")}
</Button>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/modules/shell/DynamicModals.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import { WelcomeToOrganizationsModal } from "~/ee/organizations/components/WelcomeToOrganizationsModal";
import { WelcomeToOrganizationsModal } from "@calcom/web/modules/ee/organizations/components/WelcomeToOrganizationsModal";

import { WelcomeToCalcomModal } from "./components/WelcomeToCalcomModal";
import { GatedFeaturesModal } from "./components/GatedFeaturesModal";
Expand Down
4 changes: 2 additions & 2 deletions apps/web/modules/shell/banners/LayoutBanner.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import ImpersonatingBanner, {
type ImpersonatingBannerProps,
} from "~/ee/impersonation/components/ImpersonatingBanner";
} from "@calcom/web/modules/ee/impersonation/components/ImpersonatingBanner";
import {
OrgUpgradeBanner,
type OrgUpgradeBannerProps,
} from "~/ee/organizations/components/OrgUpgradeBanner";
} from "@calcom/web/modules/ee/organizations/components/OrgUpgradeBanner";
import {
TeamsUpgradeBanner,
type TeamsUpgradeBannerProps,
Expand Down
Loading