Scoreboard ui stuff

This commit is contained in:
Joey Yakimowich-Payne 2026-01-15 08:21:38 -07:00
commit 279dc7f2c3
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
12 changed files with 1558 additions and 77 deletions

View file

@ -1,4 +1,4 @@
import React, { useState } from 'react';
import React, { useState, useEffect } from 'react';
import { motion } from 'framer-motion';
import { X, Palette, Loader2, Check } from 'lucide-react';
import { useBodyScrollLock } from '../hooks/useBodyScrollLock';
@ -25,6 +25,12 @@ export const PreferencesModal: React.FC<PreferencesModalProps> = ({
useBodyScrollLock(isOpen);
const [localPrefs, setLocalPrefs] = useState<UserPreferences>(preferences);
useEffect(() => {
if (isOpen) {
setLocalPrefs(preferences);
}
}, [isOpen, preferences]);
if (!isOpen) return null;
const handleColorSelect = (schemeId: string) => {