diff --git a/SerpentRace_Frontend/src/components/DeckCreator/DeckHeader.jsx b/SerpentRace_Frontend/src/components/DeckCreator/DeckHeader.jsx
index 408b0251..22d8dcd1 100644
--- a/SerpentRace_Frontend/src/components/DeckCreator/DeckHeader.jsx
+++ b/SerpentRace_Frontend/src/components/DeckCreator/DeckHeader.jsx
@@ -44,10 +44,7 @@ export default function DeckHeader({ deck, onUpdate, onSave, onBack }) {
onUpdate({ [field]: value })
}
- const cardsCount = deck.cards?.length || 0
- const taskCards = deck.cards?.filter(card => card.type === 'task')?.length || 0
- const jokerCards = deck.cards?.filter(card => card.type === 'joker')?.length || 0
- const luckCards = deck.cards?.filter(card => card.type === 'luck')?.length || 0
+ // Remove unused card count variables
return (
@@ -77,172 +74,140 @@ export default function DeckHeader({ deck, onUpdate, onSave, onBack }) {
{/* Main Content Row */}
-
- {/* Deck Basic Info */}
-
- {/* Deck Name */}
+
+ {/* Deck Name */}
+
+
+ handleInputChange('name', e.target.value)}
+ className="w-full px-4 py-2 rounded-xl bg-[color:var(--color-background)] border border-[color:var(--color-surface-selected)] text-[color:var(--color-text)] focus:ring-2 focus:ring-[color:var(--color-success)] focus:border-transparent outline-none transition-all duration-200"
+ placeholder="Add meg a pakli nevét..."
+ />
+
+
+ {/* Type, Privacy and Description Row */}
+
+ {/* Deck Type */}
+
+
+
+ {isTypeDropdownOpen && (
+
+ {deckTypes.map(type => (
+
+ ))}
+
+ )}
+
+
+
+ {/* Privacy */}
+
+
+
+
+
+ {isPrivacyDropdownOpen && (
+
+ {privacyOptions.map(option => (
+
+ ))}
+
+ )}
+
+
+
+ {/* Description */}
+
+
handleInputChange('name', e.target.value)}
+ value={deck.description}
+ onChange={(e) => handleInputChange('description', e.target.value)}
className="w-full px-4 py-2 rounded-xl bg-[color:var(--color-background)] border border-[color:var(--color-surface-selected)] text-[color:var(--color-text)] focus:ring-2 focus:ring-[color:var(--color-success)] focus:border-transparent outline-none transition-all duration-200"
- placeholder="Add meg a pakli nevét..."
+ placeholder="Rövid leírás..."
/>
-
- {/* Type and Privacy Row */}
-
- {/* Deck Type */}
-
-
-
-
-
- {isTypeDropdownOpen && (
-
- {deckTypes.map(type => (
-
- ))}
-
- )}
-
-
-
- {/* Privacy */}
-
-
-
-
-
- {isPrivacyDropdownOpen && (
-
- {privacyOptions.map(option => (
-
- ))}
-
- )}
-
-
-
- {/* Description */}
-
-
- handleInputChange('description', e.target.value)}
- className="w-full px-4 py-2 rounded-xl bg-[color:var(--color-background)] border border-[color:var(--color-surface-selected)] text-[color:var(--color-text)] focus:ring-2 focus:ring-[color:var(--color-success)] focus:border-transparent outline-none transition-all duration-200"
- placeholder="Rövid leírás..."
- />
-
-
-
-
- {/* Stats Panel */}
-
-
- 📊 Statisztikák
-
-
-
-
- Összes kártya:
- {cardsCount}
-
-
-
- 📋 Feladat:
- {taskCards}
-
-
-
- 🃏 Joker:
- {jokerCards}
-
-
-
- 🎲 Szerencse:
- {luckCards}
-
-