fix: address code review feedback on pane takeover

- Remove leftover text-left on TemplateCard div (was from button era)
- Use warning text as React key instead of array index

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
chihlasm
2026-03-13 12:41:48 -04:00
parent 87a5988fc3
commit 1d280a5c78
2 changed files with 3 additions and 3 deletions

View File

@@ -158,8 +158,8 @@ export function ScriptConfigurePane({ canGenerate, onBack }: Props) {
<AlertTriangle size={13} />
Warnings
</div>
{generationWarnings.map((w, i) => (
<p key={i} className="text-xs text-amber-400/80">{w}</p>
{generationWarnings.map((w) => (
<p key={w} className="text-xs text-amber-400/80">{w}</p>
))}
</div>
)}

View File

@@ -17,7 +17,7 @@ export function TemplateCard({ template, onConfigure }: Props) {
return (
<div
className={cn(
'w-full text-left px-4 py-3 rounded-xl border transition-all',
'w-full px-4 py-3 rounded-xl border transition-all',
'border-border bg-transparent'
)}
>