From 543ceef777373687fd211b338c5018b653e271ce Mon Sep 17 00:00:00 2001 From: KennyG Date: Sun, 26 Apr 2026 11:22:17 -0400 Subject: [PATCH] Apply non-functional formatting normalization in cover image UI helpers. Adjust import/order and JSX wrapping in ImageInput and IconField to align with Prettier style expectations. Made-with: Cursor --- ui/v2.5/src/components/Shared/ImageInput.tsx | 2 +- ui/v2.5/src/utils/field.tsx | 17 +++++++++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/ui/v2.5/src/components/Shared/ImageInput.tsx b/ui/v2.5/src/components/Shared/ImageInput.tsx index 7f9e933bd..a4b499e75 100644 --- a/ui/v2.5/src/components/Shared/ImageInput.tsx +++ b/ui/v2.5/src/components/Shared/ImageInput.tsx @@ -12,11 +12,11 @@ import { ModalComponent } from "./Modal"; import { Icon } from "./Icon"; import { faCameraRotate, + faCirclePlay, faClipboard, faFile, faLink, faPhotoFilm, - faCirclePlay } from "@fortawesome/free-solid-svg-icons"; import { PatchComponent } from "src/patch"; import ImageUtils from "src/utils/image"; diff --git a/ui/v2.5/src/utils/field.tsx b/ui/v2.5/src/utils/field.tsx index 81884aa7b..281bb02bc 100644 --- a/ui/v2.5/src/utils/field.tsx +++ b/ui/v2.5/src/utils/field.tsx @@ -1,10 +1,10 @@ import React from "react"; +import { FontAwesomeIconProps } from "@fortawesome/react-fontawesome"; import { FormattedMessage } from "react-intl"; import { Link } from "react-router-dom"; import { ExternalLink } from "src/components/Shared/ExternalLink"; import { Icon } from "src/components/Shared/Icon"; import { TruncatedText } from "src/components/Shared/TruncatedText"; -import { FontAwesomeIconProps } from "@fortawesome/react-fontawesome"; interface ITextField { id?: string; @@ -212,7 +212,12 @@ export const IconField: React.FC = ({ displayValue ); return ( - + {children} ); @@ -228,11 +233,15 @@ export const IconField: React.FC = ({ - {icon && } + {icon && ( + + )} {renderValue()}