refactor: Remove unused imports and state variables from DeckBuilderView and GameRoom components.
All checks were successful
Build and Deploy / build (push) Successful in 1m56s
All checks were successful
Build and Deploy / build (push) Successful in 1m56s
This commit is contained in:
@@ -9,9 +9,8 @@ import { DndContext, DragOverlay, useSensor, useSensors, MouseSensor, TouchSenso
|
||||
import { CSS } from '@dnd-kit/utilities';
|
||||
import { AutoDeckBuilder } from '../../utils/AutoDeckBuilder';
|
||||
import { Wand2 } from 'lucide-react'; // Import Wand icon
|
||||
import { useToast } from '../../components/Toast';
|
||||
import { useConfirm } from '../../components/ConfirmDialog';
|
||||
import { CardComponent } from '../game/CardComponent';
|
||||
|
||||
|
||||
interface DeckBuilderViewProps {
|
||||
roomId: string;
|
||||
@@ -277,9 +276,9 @@ export const DeckBuilderView: React.FC<DeckBuilderViewProps> = ({ initialPool, a
|
||||
// Unlimited Timer (Static for now)
|
||||
const [timer] = useState<string>("Unlimited");
|
||||
/* --- Hooks --- */
|
||||
const { showToast } = useToast();
|
||||
// const { showToast } = useToast();
|
||||
const { confirm } = useConfirm();
|
||||
const [deckName, setDeckName] = useState('New Deck');
|
||||
// const [deckName, setDeckName] = useState('New Deck');
|
||||
const [layout, setLayout] = useState<'vertical' | 'horizontal'>(() => {
|
||||
const saved = typeof window !== 'undefined' ? localStorage.getItem('deck_layout') : null;
|
||||
return (saved as 'vertical' | 'horizontal') || 'vertical';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { useState, useEffect, useRef } from 'react';
|
||||
import { socketService } from '../../services/SocketService';
|
||||
import { Share2, Users, Play, LogOut, Copy, Check, Hash, Crown, XCircle, MessageSquare, Send, Bell, BellOff, X, Bot, Layers } from 'lucide-react';
|
||||
import { Users, LogOut, Copy, Check, MessageSquare, Send, Bell, BellOff, X, Bot, Layers } from 'lucide-react';
|
||||
import { useConfirm } from '../../components/ConfirmDialog';
|
||||
import { Modal } from '../../components/Modal';
|
||||
import { useToast } from '../../components/Toast';
|
||||
@@ -64,7 +64,6 @@ export const GameRoom: React.FC<GameRoomProps> = ({ room: initialRoom, currentPl
|
||||
// Services
|
||||
const { showToast } = useToast();
|
||||
const { confirm } = useConfirm();
|
||||
const [copied, setCopied] = useState(false);
|
||||
|
||||
// Restored States
|
||||
const [message, setMessage] = useState('');
|
||||
|
||||
Reference in New Issue
Block a user