From 78aafdf9177ad73688958f5f70c325eb2e357bce Mon Sep 17 00:00:00 2001 From: zoro Date: Mon, 8 Jun 2026 03:09:33 -0700 Subject: [PATCH] score: remove score value icon (#177) --- src/modules/scores/score-stats.tsx | 4 ++-- src/shared/components/stat.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/scores/score-stats.tsx b/src/modules/scores/score-stats.tsx index ba2ebb17..59c63efd 100644 --- a/src/modules/scores/score-stats.tsx +++ b/src/modules/scores/score-stats.tsx @@ -1,6 +1,6 @@ 'use client'; -import { Check, Clock, Hash, Info, Star, Target, X } from 'lucide-react'; +import { Check, Clock, Info, Star, Target, X } from 'lucide-react'; import { useTranslations } from 'use-intl'; import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'; @@ -93,7 +93,7 @@ export function ScoreStats({
- + {formatNumber(score.modifiedScore)} {score.mods.length > 0 && {score.mods.join(', ')}} diff --git a/src/shared/components/stat.tsx b/src/shared/components/stat.tsx index c2db514a..5fedde57 100644 --- a/src/shared/components/stat.tsx +++ b/src/shared/components/stat.tsx @@ -5,7 +5,7 @@ import type { IconType } from 'react-icons'; import { cn } from '@/shared/format/helpers'; interface StatProps extends React.HTMLAttributes { - icon: IconType | React.ComponentType<{ className?: string }>; + icon?: IconType | React.ComponentType<{ className?: string }>; label?: string; children: React.ReactNode; labelClassName?: string; @@ -21,7 +21,7 @@ export const Stat = forwardRef( className={cn('bg-secondary/35 text-muted-foreground inline-flex items-center gap-2 rounded-md border px-2.5 py-1 text-xs', className)} {...props} > - + {Icon ? : null} {label ? {label} : null} {children}