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} />
|
<AlertTriangle size={13} />
|
||||||
Warnings
|
Warnings
|
||||||
</div>
|
</div>
|
||||||
{generationWarnings.map((w, i) => (
|
{generationWarnings.map((w) => (
|
||||||
<p key={i} className="text-xs text-amber-400/80">{w}</p>
|
<p key={w} className="text-xs text-amber-400/80">{w}</p>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export function TemplateCard({ template, onConfigure }: Props) {
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={cn(
|
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'
|
'border-border bg-transparent'
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user