diff --git a/src/components/admin/sla-metrics.tsx b/src/components/admin/sla-metrics.tsx index b843104..aed35a1 100644 --- a/src/components/admin/sla-metrics.tsx +++ b/src/components/admin/sla-metrics.tsx @@ -1,9 +1,15 @@ +import type { FC } from 'react'; import { useMemo } from 'react'; -import { CheckCircle, AlertTriangle, AlertCircle } from '@untitledui/icons'; +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; +import { faCircleCheck, faTriangleExclamation, faCircleExclamation } from '@fortawesome/pro-duotone-svg-icons'; import { cx } from '@/utils/cx'; import type { Lead } from '@/types/entities'; +const CheckCircle: FC<{ className?: string }> = ({ className }) => ; +const AlertTriangle: FC<{ className?: string }> = ({ className }) => ; +const AlertCircle: FC<{ className?: string }> = ({ className }) => ; + interface SlaMetricsProps { leads: Lead[]; } @@ -40,7 +46,7 @@ export const SlaMetrics = ({ leads }: SlaMetricsProps) => { return { avgHours, withinSla, total, slaPercent }; }, [leads]); - const getTargetStatus = (): { icon: typeof CheckCircle; label: string; colorClass: string } => { + const getTargetStatus = (): { icon: FC<{ className?: string }>; label: string; colorClass: string } => { const diff = metrics.avgHours - SLA_TARGET_HOURS; if (diff <= 0) { diff --git a/src/components/application/app-navigation/base-components/mobile-header.tsx b/src/components/application/app-navigation/base-components/mobile-header.tsx index 0da5a17..0df54bd 100644 --- a/src/components/application/app-navigation/base-components/mobile-header.tsx +++ b/src/components/application/app-navigation/base-components/mobile-header.tsx @@ -1,5 +1,6 @@ import type { PropsWithChildren } from "react"; -import { X as CloseIcon, Menu02 } from "@untitledui/icons"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import { faXmark, faBars } from "@fortawesome/pro-duotone-svg-icons"; import { Button as AriaButton, Dialog as AriaDialog, @@ -20,8 +21,8 @@ export const MobileNavigationHeader = ({ children }: PropsWithChildren) => { aria-label="Expand navigation menu" className="group flex items-center justify-center rounded-lg bg-primary p-2 text-fg-secondary outline-focus-ring hover:bg-primary_hover hover:text-fg-secondary_hover focus-visible:outline-2 focus-visible:outline-offset-2" > - - + + @@ -42,7 +43,7 @@ export const MobileNavigationHeader = ({ children }: PropsWithChildren) => { onPress={() => state.close()} className="fixed top-3 right-2 flex cursor-pointer items-center justify-center rounded-lg p-2 text-fg-white/70 outline-focus-ring hover:bg-white/10 hover:text-fg-white focus-visible:outline-2 focus-visible:outline-offset-2" > - + diff --git a/src/components/application/app-navigation/base-components/nav-account-card.tsx b/src/components/application/app-navigation/base-components/nav-account-card.tsx index 2d565b7..55bad8a 100644 --- a/src/components/application/app-navigation/base-components/nav-account-card.tsx +++ b/src/components/application/app-navigation/base-components/nav-account-card.tsx @@ -1,9 +1,9 @@ import type { FC, HTMLAttributes } from "react"; import { useCallback, useEffect, useRef } from "react"; import type { Placement } from "@react-types/overlays"; -import { ChevronSelectorVertical } from "@untitledui/icons"; +import { faSort } from "@fortawesome/pro-duotone-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { faUser, faGear, faArrowRightFromBracket, faPhoneVolume } from "@fortawesome/pro-duotone-svg-icons"; +import { faUser, faGear, faArrowRightFromBracket, faPhoneVolume, faSort } from "@fortawesome/pro-duotone-svg-icons"; const IconUser: FC<{ className?: string }> = ({ className }) => ; const IconSettings: FC<{ className?: string }> = ({ className }) => ; @@ -154,7 +154,7 @@ export const NavAccountCard = ({
- + ; + const externalIcon = isExternal && ; if (type === "collapsible") { return ( @@ -68,7 +69,7 @@ export const NavItemBase = ({ current, type, badge, href, icon: Icon, children, {badgeElement} -
diff --git a/src/components/base/select/select.tsx b/src/components/base/select/select.tsx index bc87346..a4d4a09 100644 --- a/src/components/base/select/select.tsx +++ b/src/components/base/select/select.tsx @@ -1,6 +1,7 @@ import type { FC, ReactNode, Ref, RefAttributes } from "react"; import { createContext, isValidElement } from "react"; -import { ChevronDown } from "@untitledui/icons"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import { faChevronDown } from "@fortawesome/pro-duotone-svg-icons"; import type { SelectProps as AriaSelectProps } from "react-aria-components"; import { Button as AriaButton, ListBox as AriaListBox, Select as AriaSelect, SelectValue as AriaSelectValue } from "react-aria-components"; import { Avatar } from "@/components/base/avatar/avatar"; @@ -92,9 +93,10 @@ const SelectValue = ({ isOpen, isFocused, isDisabled, size, placeholder, placeho

{placeholder}

)} -