mirror of
https://github.com/stashapp/stash.git
synced 2026-05-09 05:05:29 +02:00
Adjust formatting in performer result and scraped preview.
Normalize formatting patterns to align with repository Prettier output. Made-with: Cursor
This commit is contained in:
parent
211243919f
commit
609395cbeb
2 changed files with 11 additions and 7 deletions
|
|
@ -157,11 +157,13 @@ const PerformerResult: React.FC<IPerformerResultProps> = ({
|
|||
stashID.stash_id === performer.remote_site_id
|
||||
);
|
||||
const [selectedPerformer, setSelectedPerformer] = useState<Performer>();
|
||||
const { data: selectedPerformerData, loading: selectedPerformerLoading } =
|
||||
GQL.useFindPerformerQuery({
|
||||
variables: { id: selectedID ?? "" },
|
||||
skip: !selectedID,
|
||||
});
|
||||
const {
|
||||
data: selectedPerformerData,
|
||||
loading: selectedPerformerLoading,
|
||||
} = GQL.useFindPerformerQuery({
|
||||
variables: { id: selectedID ?? "" },
|
||||
skip: !selectedID,
|
||||
});
|
||||
const selectedPerformerDetails = selectedPerformerData?.findPerformer;
|
||||
|
||||
const stashboxPerformerPrefix = endpoint
|
||||
|
|
|
|||
|
|
@ -11,7 +11,9 @@ interface IScrapedPerformerPreviewProps {
|
|||
children?: ReactNode;
|
||||
}
|
||||
|
||||
const toPerformerCardData = (performer: GQL.ScrapedPerformer) =>
|
||||
const toPerformerCardData = (
|
||||
performer: GQL.ScrapedPerformer
|
||||
): GQL.PerformerDataFragment =>
|
||||
({
|
||||
id:
|
||||
performer.stored_id ??
|
||||
|
|
@ -43,7 +45,7 @@ const toPerformerCardData = (performer: GQL.ScrapedPerformer) =>
|
|||
o_counter: null,
|
||||
rating100: null,
|
||||
urls: performer.urls ?? [],
|
||||
} as unknown as GQL.PerformerDataFragment);
|
||||
}) as unknown as GQL.PerformerDataFragment;
|
||||
|
||||
const ScrapedPerformerCard = ({
|
||||
performer,
|
||||
|
|
|
|||
Loading…
Reference in a new issue