From 5a437b7edadc59022306d481aaf621e1f3604afd Mon Sep 17 00:00:00 2001 From: medievalshell Date: Sun, 31 May 2026 17:28:46 +0200 Subject: [PATCH] feat(fortune-wheel): add wheel-card and wheel-slice-icon class hooks Lets a runtime theme scope the wheel card background and scale the slice prize icons without touching defaults (the hooks add no styles on their own). --- src/components/fortune-wheel/FortuneWheelView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/fortune-wheel/FortuneWheelView.tsx b/src/components/fortune-wheel/FortuneWheelView.tsx index c15b10d..7b4d508 100644 --- a/src/components/fortune-wheel/FortuneWheelView.tsx +++ b/src/components/fortune-wheel/FortuneWheelView.tsx @@ -206,7 +206,7 @@ export const FortuneWheelView: FC<{}> = () => const canSpin = ((freeSpins + extraSpins) > 0) && !isSpinning && (prizes.length > 0); return ( - + setIsVisible(false) } />
@@ -237,7 +237,7 @@ export const FortuneWheelView: FC<{}> = () => key={ prize.id } className="absolute left-1/2 top-1/2" style={ { transform: `rotate(${ centerAngle }deg) translateY(-${ ICON_RADIUS }px) rotate(-${ centerAngle }deg)` } }> -
+
{ renderPrizeIcon(prize) }
);