mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Add linkTypes to performer popover (#5195)
This commit is contained in:
@@ -6,16 +6,20 @@ import * as GQL from "src/core/generated-graphql";
|
||||
import { sortPerformers } from "src/core/performers";
|
||||
import { HoverPopover } from "./HoverPopover";
|
||||
import { Icon } from "./Icon";
|
||||
import { PerformerLink } from "./TagLink";
|
||||
import { PerformerLink, PerformerLinkType } from "./TagLink";
|
||||
|
||||
interface IProps {
|
||||
performers: Pick<
|
||||
GQL.Performer,
|
||||
"id" | "name" | "image_path" | "disambiguation" | "gender"
|
||||
>[];
|
||||
linkType?: PerformerLinkType;
|
||||
}
|
||||
|
||||
export const PerformerPopoverButton: React.FC<IProps> = ({ performers }) => {
|
||||
export const PerformerPopoverButton: React.FC<IProps> = ({
|
||||
performers,
|
||||
linkType,
|
||||
}) => {
|
||||
const sorted = sortPerformers(performers);
|
||||
const popoverContent = sorted.map((performer) => (
|
||||
<div className="performer-tag-container row" key={performer.id}>
|
||||
@@ -33,6 +37,7 @@ export const PerformerPopoverButton: React.FC<IProps> = ({ performers }) => {
|
||||
key={performer.id}
|
||||
performer={performer}
|
||||
className="d-block"
|
||||
linkType={linkType}
|
||||
/>
|
||||
</div>
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user