mirror of
https://github.com/stashapp/stash.git
synced 2026-05-09 05:05:29 +02:00
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:
parent
9ba90cb715
commit
211243919f
3 changed files with 16 additions and 11 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue