Fix: multiple imports, ambigious spacing and unexpected negated condition

This commit is contained in:
Moyasee
2025-10-03 03:06:37 +03:00
parent 1b5f70a075
commit 899f68318f
3 changed files with 3 additions and 4 deletions

View File

@@ -693,7 +693,7 @@ export function GameDetailsContent() {
{review.isBlocked &&
!visibleBlockedReviews.has(review.id) ? (
<div className="game-details__blocked-review-simple">
Review from blocked user
Review from blocked user {" "}
<button
className="game-details__blocked-review-show-link"
onClick={() => toggleBlockedReview(review.id)}

View File

@@ -244,7 +244,7 @@ export function HeroPanelActions() {
onClick={() => setShowRepacksModal(true)}
theme="outline"
disabled={isGameDownloading}
className={`hero-panel-actions__action ${!repacks.length ? "hero-panel-actions__action--disabled" : ""}`}
className={`hero-panel-actions__action ${repacks.length === 0 ? "hero-panel-actions__action--disabled" : ""}`}
>
<DownloadIcon />
{t("download")}

View File

@@ -1,9 +1,8 @@
import { useContext } from "react";
import { userProfileContext } from "@renderer/context";
import { useTranslation } from "react-i18next";
import { useFormat } from "@renderer/hooks";
import { useFormat, useUserDetails } from "@renderer/hooks";
import { Award } from "lucide-react";
import { useUserDetails } from "@renderer/hooks";
import "./user-karma-box.scss";
export function UserKarmaBox() {