]> Untitled Git - lemmy-ui.git/commitdiff
make suggested change
authorAlec Armbruster <alectrocute@gmail.com>
Sun, 11 Jun 2023 14:06:10 +0000 (10:06 -0400)
committerAlec Armbruster <alectrocute@gmail.com>
Sun, 11 Jun 2023 14:06:10 +0000 (10:06 -0400)
src/shared/components/comment/comment-node.tsx

index cd16c6bb2172b48063a2b8bdcbc00f7c06587a13..45ec5a2631b69d03b1ce01bb85d6498498528ba3 100644 (file)
@@ -240,11 +240,7 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
                 aria-label={this.expandText}
                 data-tippy-content={this.expandText}
               >
-                {this.state.collapsed ? (
-                  <Icon icon="plus-square" classes="icon-inline" />
-                ) : (
-                  <Icon icon="minus-square" classes="icon-inline" />
-                )}
+                <Icon icon={`${this.state.collapsed ? "plus" : "minus"}-square`} classes="icon-inline" />
               </button>
               <span className="mr-2">
                 <PersonListing person={cv.creator} />