Reduce bundle size by importing single icons at a time (#6644)
* Removed barrel import for icons to reduce bundle size. * Fixed replacement mistakes * Reverted unneccesary yarn.lock updates * Added some missed Icon. import conversions * Remove merge artifact import in @calcom/ui * Don't import Icon in pages/[user] * Update packages/ui/package.json Co-authored-by: Alex van Andel <[email protected]> Co-authored-by: Omar López <[email protected]>
This commit is contained in:
155 files changed
+881
-768
No files matched your search
@@ -17,7 +17,6 @@ import {
|
||||
Dialog,
|
||||
EmptyScreen,
|
||||
Form,
|
||||
Icon,
|
||||
showToast,
|
||||
SkeletonButton,
|
||||
SkeletonContainer,
|
||||
@@ -26,6 +25,7 @@ import {
|
||||
TextField,
|
||||
VerticalDivider,
|
||||
} from "@calcom/ui";
|
||||
import { FiAlertCircle, FiEdit } from "@calcom/ui/components/icon";
|
||||
|
||||
const IntegrationContainer = ({
|
||||
app,
|
||||
@@ -110,7 +110,7 @@ const IntegrationContainer = ({
|
||||
variant="icon"
|
||||
tooltip={t("edit_keys")}
|
||||
onClick={() => setShowKeys(!showKeys)}>
|
||||
<Icon.FiEdit />
|
||||
<FiEdit />
|
||||
</Button>
|
||||
</CollapsibleTrigger>
|
||||
</>
|
||||
@@ -224,7 +224,7 @@ const AdminAppsListContainer = () => {
|
||||
if (!apps) {
|
||||
return (
|
||||
<EmptyScreen
|
||||
Icon={Icon.FiAlertCircle}
|
||||
Icon={FiAlertCircle}
|
||||
headline={t("no_available_apps")}
|
||||
description={t("no_available_apps_description")}
|
||||
/>
|
||||
|
||||
@@ -8,11 +8,11 @@ import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
DialogTrigger,
|
||||
Icon,
|
||||
showToast,
|
||||
DialogFooter,
|
||||
DialogClose,
|
||||
} from "@calcom/ui";
|
||||
import { FiTrash, FiAlertCircle } from "@calcom/ui/components/icon";
|
||||
|
||||
export default function DisconnectIntegration({
|
||||
credentialId,
|
||||
@@ -54,7 +54,7 @@ export default function DisconnectIntegration({
|
||||
<DialogTrigger asChild>
|
||||
<Button
|
||||
color={buttonProps?.color || "destructive"}
|
||||
StartIcon={trashIcon ? Icon.FiTrash : undefined}
|
||||
StartIcon={trashIcon ? FiTrash : undefined}
|
||||
size="base"
|
||||
variant={trashIcon && !label ? "icon" : "button"}
|
||||
disabled={isGlobal}
|
||||
@@ -66,7 +66,7 @@ export default function DisconnectIntegration({
|
||||
title={t("remove_app")}
|
||||
description={t("are_you_sure_you_want_to_remove_this_app")}
|
||||
type="confirmation"
|
||||
Icon={Icon.FiAlertCircle}>
|
||||
Icon={FiAlertCircle}>
|
||||
<DialogFooter>
|
||||
<DialogClose onClick={() => setModalOpen(false)} />
|
||||
<DialogClose color="primary" onClick={() => mutation.mutate({ id: credentialId })}>
|
||||
|
||||
Reference in new issue
Block a user