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:
@@ -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>
|
||||
)}
|
||||
|
||||
@@ -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'
|
||||
)}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user