feat(ui): melhorias na usabilidade do painel e correções

This commit is contained in:
NANDO9322 2026-01-30 13:55:36 -03:00
parent a762bf8b5e
commit c1af6eb8b4
2 changed files with 47 additions and 27 deletions

View file

@ -894,15 +894,24 @@ export const EventForm: React.FC<EventFormProps> = ({
>
Voltar
</Button>
<div className="flex gap-3 w-full sm:w-auto order-1 sm:order-2">
<Button
onClick={handleSubmit}
variant="secondary"
className="flex-1 sm:flex-initial"
>
Salvar Alterações
</Button>
<Button
onClick={() => setActiveTab("location")}
className="w-full sm:w-auto order-1 sm:order-2"
className="flex-1 sm:flex-initial"
disabled={(!user?.empresaId && user?.role !== UserRole.SUPERADMIN && user?.role !== UserRole.BUSINESS_OWNER)}
>
Próximo: Localização
</Button>
</div>
</div>
</div>
)}
{activeTab === "location" && (
@ -1084,14 +1093,23 @@ export const EventForm: React.FC<EventFormProps> = ({
>
Voltar
</Button>
<div className="flex gap-3 w-full sm:w-auto">
<Button
onClick={handleSubmit}
variant="secondary"
className="flex-1 sm:flex-initial"
>
Salvar Alterações
</Button>
<Button
onClick={() => setActiveTab("briefing")}
className="w-full sm:w-auto"
className="flex-1 sm:flex-initial"
>
Próximo
</Button>
</div>
</div>
</div>
)}
{activeTab === "briefing" && (
@ -1170,15 +1188,24 @@ export const EventForm: React.FC<EventFormProps> = ({
className="w-full sm:w-auto"
>
Voltar
</Button>
<div className="flex gap-3 w-full sm:w-auto">
<Button
onClick={handleSubmit}
variant="secondary"
className="flex-1 sm:flex-initial"
>
Salvar Alterações
</Button>
<Button
onClick={() => setActiveTab("files")}
className="w-full sm:w-auto"
className="flex-1 sm:flex-initial"
>
Próximo
</Button>
</div>
</div>
</div>
)}
{activeTab === "files" && (

View file

@ -952,14 +952,7 @@ export const Dashboard: React.FC<DashboardProps> = ({
return (
<>
<tr className="hover:bg-gray-50">
<td className="px-4 py-3 text-xs font-semibold text-gray-600 uppercase tracking-wider bg-gray-50">
QTD Formandos
</td>
<td className="px-4 py-3 text-sm text-gray-900">
{selectedEvent.qtdFormandos || (selectedEvent as any).qtd_formandos || selectedEvent.attendees || "-"}
</td>
</tr>
{renderResourceRow(
"Fotógrafo",