fix: agregar campos soporte faltantes en admin settings
- support_title, support_description, support_days, support_hours (los que lee la app Flutter para la pantalla de soporte) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
7e68fcc2bb
commit
f66b1a9bc1
@@ -17,7 +17,10 @@ const API_BASE = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3000/api/v
|
|||||||
interface GlobalSettings {
|
interface GlobalSettings {
|
||||||
app_version_android?: string;
|
app_version_android?: string;
|
||||||
app_version_ios?: string;
|
app_version_ios?: string;
|
||||||
support_schedule?: string;
|
support_title?: string;
|
||||||
|
support_description?: string;
|
||||||
|
support_days?: string;
|
||||||
|
support_hours?: string;
|
||||||
support_email?: string;
|
support_email?: string;
|
||||||
support_phone?: string;
|
support_phone?: string;
|
||||||
maintenance_mode?: boolean;
|
maintenance_mode?: boolean;
|
||||||
@@ -160,13 +163,39 @@ export default function SettingsPage() {
|
|||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent className="space-y-4">
|
<CardContent className="space-y-4">
|
||||||
<div className="space-y-1">
|
<div className="space-y-1">
|
||||||
<label className="text-sm font-medium">Horario de atención</label>
|
<label className="text-sm font-medium">Título</label>
|
||||||
<Input
|
<Input
|
||||||
placeholder="Lunes a viernes 8am – 6pm"
|
placeholder="Soporte ProsApp"
|
||||||
value={global.support_schedule || ''}
|
value={global.support_title || ''}
|
||||||
onChange={(e) => setG('support_schedule', e.target.value)}
|
onChange={(e) => setG('support_title', e.target.value)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="space-y-1">
|
||||||
|
<label className="text-sm font-medium">Descripción</label>
|
||||||
|
<Input
|
||||||
|
placeholder="Estamos aquí para ayudarte..."
|
||||||
|
value={global.support_description || ''}
|
||||||
|
onChange={(e) => setG('support_description', e.target.value)}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div className="grid grid-cols-2 gap-4">
|
||||||
|
<div className="space-y-1">
|
||||||
|
<label className="text-sm font-medium">Días de atención</label>
|
||||||
|
<Input
|
||||||
|
placeholder="Lunes a Viernes"
|
||||||
|
value={global.support_days || ''}
|
||||||
|
onChange={(e) => setG('support_days', e.target.value)}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div className="space-y-1">
|
||||||
|
<label className="text-sm font-medium">Horas de atención</label>
|
||||||
|
<Input
|
||||||
|
placeholder="8:00 am – 6:00 pm"
|
||||||
|
value={global.support_hours || ''}
|
||||||
|
onChange={(e) => setG('support_hours', e.target.value)}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div className="grid grid-cols-2 gap-4">
|
<div className="grid grid-cols-2 gap-4">
|
||||||
<div className="space-y-1">
|
<div className="space-y-1">
|
||||||
<label className="text-sm font-medium flex items-center gap-1"><Mail size={13} /> Email</label>
|
<label className="text-sm font-medium flex items-center gap-1"><Mail size={13} /> Email</label>
|
||||||
@@ -177,7 +206,7 @@ export default function SettingsPage() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="space-y-1">
|
<div className="space-y-1">
|
||||||
<label className="text-sm font-medium flex items-center gap-1"><Phone size={13} /> Teléfono</label>
|
<label className="text-sm font-medium flex items-center gap-1"><Phone size={13} /> Teléfono / WhatsApp</label>
|
||||||
<Input
|
<Input
|
||||||
placeholder="+57 300 000 0000"
|
placeholder="+57 300 000 0000"
|
||||||
value={global.support_phone || ''}
|
value={global.support_phone || ''}
|
||||||
|
|||||||
Reference in New Issue
Block a user