perf: do not import from @calcom/ui barrel file (#20184)
* Icon and IconName * Button and ButtonGroup * UserAvatar * AvatarGroup * Avatar * WizardLayout * Dialogs * EmptyScreen * showToast and TextField * Editor * Skeleton * Skeleton * TopBanner and showToast * Button again * more * perf: Remove app-store reference from @calcom/ui * more * Fixing types * Icon * Fixed casing * dropdown * more * Select * more * Badge * List * more * Divider * more * fix * fix type check * refactor * fix * fix * fix * fix * fix * fix * fix * fix type check * fix * fix * fix * fix * more * more * more * more * add index file to components/command * fix * fix * fix * fix imports * fix * fix * fix * fix * fix * fix * fix * fix build errors * fix build errors * fix --------- Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
1 parent
ca19aa00c1
commit
853f9bc436
548 files changed
+1860
-1502
No files matched your search
@@ -4,7 +4,7 @@ import type { ReactNode } from "react";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
|
||||
import { Label } from "../inputs/Label";
|
||||
import Switch from "./Switch";
|
||||
import { Switch } from "./Switch";
|
||||
|
||||
type Props = {
|
||||
children?: ReactNode;
|
||||
@@ -26,7 +26,7 @@ type Props = {
|
||||
hideSwitch?: boolean;
|
||||
};
|
||||
|
||||
function SettingsToggle({
|
||||
export function SettingsToggle({
|
||||
checked,
|
||||
onCheckedChange,
|
||||
description,
|
||||
@@ -123,5 +123,3 @@ function SettingsToggle({
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default SettingsToggle;
|
||||
@@ -14,7 +14,7 @@ const Wrapper = ({ children, tooltip }: { tooltip?: string; children: React.Reac
|
||||
}
|
||||
return <Tooltip content={tooltip}>{children}</Tooltip>;
|
||||
};
|
||||
const Switch = (
|
||||
export const Switch = (
|
||||
props: React.ComponentProps<typeof PrimitiveSwitch.Root> & {
|
||||
label?: string | ReactNode;
|
||||
fitToHeight?: boolean;
|
||||
@@ -87,5 +87,3 @@ const Switch = (
|
||||
</Wrapper>
|
||||
);
|
||||
};
|
||||
|
||||
export default Switch;
|
||||
@@ -1,2 +1,2 @@
|
||||
export { default as SettingsToggle } from "./SettingsToggle";
|
||||
export { default as Switch } from "./Switch";
|
||||
export { SettingsToggle } from "./SettingsToggle";
|
||||
export { Switch } from "./Switch";
|
||||
Reference in new issue
Block a user