fix: Use classnames

This commit is contained in:
Jay Sitter 2023-06-18 23:19:56 -04:00
parent b55cf01e72
commit ad984c8584

View file

@ -1,3 +1,4 @@
import classNames from "classnames";
import { Component } from "inferno"; import { Component } from "inferno";
import { Link } from "inferno-router"; import { Link } from "inferno-router";
import { Person } from "lemmy-js-client"; import { Person } from "lemmy-js-client";
@ -48,9 +49,10 @@ export class PersonListing extends Component<PersonListingProps, any> {
{!this.props.realLink ? ( {!this.props.realLink ? (
<Link <Link
title={apubName} title={apubName}
className={`d-inline-flex align-items-baseline ${ className={classNames("d-inline-flex align-items-baseline", {
this.props.muted ? "text-muted" : "text-info" "text-muted": this.props.muted,
}`} "text-info": !this.props.muted,
})}
to={link} to={link}
> >
{this.avatarAndName(displayName)} {this.avatarAndName(displayName)}