Fix CI formatting for tagger performer preview files.

Apply Prettier-compatible formatting updates in matched preview, performer result, and scraped preview components.

Made-with: Cursor
This commit is contained in:
KennyG 2026-04-21 16:49:26 -04:00
parent 9ba90cb715
commit 211243919f
3 changed files with 16 additions and 11 deletions

View file

@ -30,8 +30,9 @@ export const MatchedPerformerPreview = ({
const { configuration: config } = useConfigurationContext();
const showPerformerCardOnHover = config?.ui.showTagCardOnHover ?? true;
const warningEndpointName = warningStashID
? config?.general.stashBoxes.find((sb) => sb.endpoint === warningStashID.endpoint)
?.name ?? warningStashID.endpoint
? config?.general.stashBoxes.find(
(sb) => sb.endpoint === warningStashID.endpoint
)?.name ?? warningStashID.endpoint
: null;
if (!performerID || !performer || !showPerformerCardOnHover) {

View file

@ -195,7 +195,9 @@ const PerformerResult: React.FC<IPerformerResultProps> = ({
selectPerformer(undefined);
};
if (stashLoading || selectedPerformerLoading) return <div>Loading performer</div>;
if (stashLoading || selectedPerformerLoading) {
return <div>Loading performer</div>;
}
if (matchedPerformer && matchedStashID) {
return (
@ -280,7 +282,7 @@ const PerformerResult: React.FC<IPerformerResultProps> = ({
</Button>
<MatchedPerformerPreview
performerID={selectedPerformer?.id}
performer={selectedPerformerDetails}
performer={selectedPerformerDetails}
warningStashID={selectedPerformerConflictStashID}
deltaRows={selectedPerformerDeltaRows}
>

View file

@ -45,13 +45,15 @@ const toPerformerCardData = (performer: GQL.ScrapedPerformer) =>
urls: performer.urls ?? [],
} as unknown as GQL.PerformerDataFragment);
const ScrapedPerformerCard = ({ performer }: { performer: GQL.ScrapedPerformer }) => {
return (
<div className="tag-popover-card tagger-scraped-performer-popover">
<PerformerCard performer={toPerformerCardData(performer)} zoomIndex={0} />
</div>
);
};
const ScrapedPerformerCard = ({
performer,
}: {
performer: GQL.ScrapedPerformer;
}) => (
<div className="tag-popover-card tagger-scraped-performer-popover">
<PerformerCard performer={toPerformerCardData(performer)} zoomIndex={0} />
</div>
);
export const ScrapedPerformerPreview = ({
performer,