chore: icon cleanup (#13770)

Co-authored-by: Joe Au-Yeung <[email protected]>
Co-authored-by: sean-brydon <[email protected]>
This commit is contained in:
authored and GitHub committed 2024-04-03 23:23:57 +00:00
1 parent 7421cea0da
commit 3f02de8214
294 files changed
+3161 -1715

No files matched your search

@@ -13,7 +13,6 @@ import {
DropdownMenuLabel,
DropdownMenuTrigger,
} from "@calcom/ui";
import { Plus } from "@calcom/ui/components/icon";
export interface Option {
platform?: boolean;
@@ -86,7 +85,7 @@ export function CreateButton(props: CreateBtnProps) {
: null
}
data-testid="create-button"
StartIcon={Plus}
StartIcon="plus"
loading={isPending}
variant={disableMobileButton ? "button" : "fab"}
{...restProps}>
@@ -97,7 +96,7 @@ export function CreateButton(props: CreateBtnProps) {
<DropdownMenuTrigger asChild>
<Button
variant={disableMobileButton ? "button" : "fab"}
StartIcon={Plus}
StartIcon="plus"
data-testid="create-button-dropdown"
loading={isPending}
{...restProps}>
@@ -113,9 +112,7 @@ export function CreateButton(props: CreateBtnProps) {
<DropdownItem
type="button"
data-testid={`option${option.teamId ? "-team" : ""}-${idx}`}
StartIcon={(props: { className?: string }) => (
<Avatar alt={option.label || ""} imageSrc={option.image} size="sm" {...props} />
)}
CustomStartIcon={<Avatar alt={option.label || ""} imageSrc={option.image} size="sm" />}
onClick={() =>
!!CreateDialog
? openModal(option)