Fix UI jank a bit

This commit is contained in:
Joey Yakimowich-Payne 2026-01-14 21:47:40 -07:00
commit 3d6081823c
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
18 changed files with 193 additions and 87 deletions

View file

@ -1,5 +1,5 @@
import React, { useState } from 'react';
import { Shuffle, Eye, Flame, TrendingUp, MinusCircle, Award, Info, ChevronDown, ChevronUp } from 'lucide-react';
import { Shuffle, Eye, Flame, TrendingUp, MinusCircle, Award, Info, ChevronDown, ChevronUp, Dices } from 'lucide-react';
import type { GameConfig } from '../types';
interface GameConfigPanelProps {
@ -222,6 +222,16 @@ export const GameConfigPanel: React.FC<GameConfigPanelProps> = ({
onChange={(v) => update({ hostParticipates: v })}
/>
<ToggleRow
icon={<Dices size={20} />}
iconActive={config.randomNamesEnabled}
label="Random Names"
description="Assign fun two-word names to players"
checked={config.randomNamesEnabled}
onChange={(v) => update({ randomNamesEnabled: v })}
tooltip="Players will be assigned random names like 'Brave Falcon' or 'Swift Tiger' instead of choosing their own nicknames."
/>
<ToggleRow
icon={<Flame size={20} />}
iconActive={config.streakBonusEnabled}