Fix card click selection (#1476)

* Make other cards use generic card
This commit is contained in:
WithoutPants
2021-06-04 12:11:17 +10:00
committed by GitHub
parent 2469012008
commit 732cc57149
13 changed files with 106 additions and 262 deletions

View File

@@ -3,12 +3,11 @@ import { Link } from "react-router-dom";
import * as GQL from "src/core/generated-graphql";
import { NavUtils, TextUtils } from "src/utils";
import {
BasicCard,
GridCard,
CountryFlag,
HoverPopover,
Icon,
TagLink,
TruncatedText,
} from "src/components/Shared";
import { Button, ButtonGroup } from "react-bootstrap";
import {
@@ -150,9 +149,10 @@ export const PerformerCard: React.FC<IPerformerCardProps> = ({
}
return (
<BasicCard
<GridCard
className="performer-card"
url={`/performers/${performer.id}`}
title={performer.name ?? ""}
image={
<>
<img
@@ -166,9 +166,6 @@ export const PerformerCard: React.FC<IPerformerCardProps> = ({
}
details={
<>
<h5>
<TruncatedText text={performer.name} />
</h5>
{age !== 0 ? <div className="text-muted">{ageString}</div> : ""}
<Link to={NavUtils.makePerformersCountryUrl(performer)}>
<CountryFlag country={performer.country} />