]> Untitled Git - lemmy-ui.git/commitdiff
fix: Use classnames
authorJay Sitter <jay@jaysitter.com>
Mon, 19 Jun 2023 03:19:56 +0000 (23:19 -0400)
committerJay Sitter <jay@jaysitter.com>
Mon, 19 Jun 2023 03:19:56 +0000 (23:19 -0400)
src/shared/components/person/person-listing.tsx

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