perf: use svg sprite for icons (#16135)

Co-authored-by: zomars <[email protected]>
This commit is contained in:
Nafees Nazikandzomars authored and GitHub committed 2024-08-08 15:12:08 -07:00
1 parent 3e28160fa7
commit da5df7164a
30 files changed
+1511 -1698

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ export default function EnterprisePage() {
description: t("branded_subdomain_description"),
},
{
icon: <Icon name="bar-chart" className="h-5 w-5 text-blue-500" />,
icon: <Icon name="chart-bar" className="h-5 w-5 text-blue-500" />,
title: t("org_insights"),
description: t("org_insights_description"),
},
@@ -1,6 +1,5 @@
import { zodResolver } from "@hookform/resolvers/zod";
import type { TEventType, TEventTypesForm } from "@pages/apps/installation/[[...step]]";
import { X } from "lucide-react";
import type { Dispatch, SetStateAction } from "react";
import type { FC } from "react";
import React, { forwardRef, useEffect, useRef, useState } from "react";
@@ -13,7 +12,7 @@ import type { LocationObject } from "@calcom/core/location";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import type { AppCategories } from "@calcom/prisma/enums";
import type { EventTypeMetaDataSchema, eventTypeBookingFields } from "@calcom/prisma/zod-utils";
import { Button, Form } from "@calcom/ui";
import { Button, Form, Icon } from "@calcom/ui";
import EventTypeAppSettingsWrapper from "@components/apps/installation/EventTypeAppSettingsWrapper";
import EventTypeConferencingAppSettings from "@components/apps/installation/EventTypeConferencingAppSettings";
@@ -101,7 +100,8 @@ const EventTypeAppSettingsForm = forwardRef<HTMLButtonElement, EventTypeAppSetti
) : (
<EventTypeAppSettingsWrapper {...props} />
)}
<X
<Icon
name="x"
data-testid={`remove-event-type-${eventType.id}`}
className="absolute right-4 top-4 h-4 w-4 cursor-pointer"
onClick={() => !loading && handleDelete()}