From 443c128e05e21b03364036e34300f993c5ba8eaa Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Thu, 22 Jun 2023 14:02:15 -0400 Subject: [PATCH] fix: Revert to old mobile vote style --- src/shared/components/common/vote-buttons.tsx | 90 +++++++++---------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/src/shared/components/common/vote-buttons.tsx b/src/shared/components/common/vote-buttons.tsx index 2bbddad..dce46f5 100644 --- a/src/shared/components/common/vote-buttons.tsx +++ b/src/shared/components/common/vote-buttons.tsx @@ -1,5 +1,6 @@ import { showScores } from "@utils/app"; import { numToSI } from "@utils/helpers"; +import classNames from "classnames"; import { Component, linkEvent } from "inferno"; import { CommentAggregates, PostAggregates } from "lemmy-js-client"; import { I18NextService } from "../../services"; @@ -60,68 +61,67 @@ export class VoteButtonsCompact extends Component< render() { return ( - <> -
+
+ + {this.props.enableDownvotes && ( - - {numToSI(this.props.counts.score)} - - {this.props.enableDownvotes && ( - - )} -
- + )} +
); } } -export class VoteButtons extends Component { - state: VotesState = { +export class VoteButtons extends Component { + state: VoteButtonsState = { upvoteLoading: false, downvoteLoading: false, }; -- 2.44.1