feat(F-050): completed feature

This commit is contained in:
chattie
2026-08-19 07:54:36 +02:00
parent e86034a62c
commit 984f278bca
32 changed files with 472 additions and 131 deletions

View File

@@ -168,8 +168,8 @@ export function ProductEditor({ productId }: ProductEditorProps) {
);
return (
<div className="p-8 max-w-4xl">
<div className="flex items-center justify-between mb-8">
<div className="space-y-8">
<div className="flex items-center justify-between">
<div>
<button onClick={() => router.push('/products')} className="text-sm text-gray-500 hover:text-gray-700 mb-1 flex items-center gap-1"> Productos</button>
<h1 className="text-2xl font-bold text-gray-900">{isCreate ? 'Nuevo producto' : `Editar: ${name}`}</h1>
@@ -184,7 +184,7 @@ export function ProductEditor({ productId }: ProductEditorProps) {
{success && <div className="mb-4 p-4 bg-green-50 border border-green-200 rounded-xl text-sm text-green-700">{success}</div>}
{/* Tabs */}
<div className="hidden md:flex border-b border-gray-200 mb-8">
<div className="flex border-b border-gray-200 mb-8 overflow-x-auto">
{(['general', 'pricing', 'inventory', 'images', 'seo', 'publish'] as const).map(t => (
<button key={t} onClick={() => setTab(t)}
className={`px-5 py-2.5 text-sm font-medium border-b-2 -mb-px transition-colors ${