mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Merge pull request #72 from ueaslsef/patch-1
adds scene link to all performer cards
This commit is contained in:
@@ -7,6 +7,7 @@ import React, { FunctionComponent } from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import * as GQL from "../../core/generated-graphql";
|
||||
import { TextUtils } from "../../utils/text";
|
||||
import { NavigationUtils } from "../../utils/navigation";
|
||||
|
||||
interface IPerformerCardProps {
|
||||
performer: GQL.PerformerDataFragment;
|
||||
@@ -43,7 +44,9 @@ export const PerformerCard: FunctionComponent<IPerformerCardProps> = (props: IPe
|
||||
{props.performer.name}
|
||||
</H4>
|
||||
{age !== 0 ? <span className="bp3-text-muted block">{ageString}</span> : undefined}
|
||||
<span className="bp3-text-muted block">Stars in {props.performer.scene_count} scenes.</span>
|
||||
<span className="bp3-text-muted block">Stars in {props.performer.scene_count}
|
||||
<Link to={NavigationUtils.makePerformerScenesUrl(props.performer)}>scenes</Link>.
|
||||
</span>
|
||||
</div>
|
||||
</Card>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user