develop #83

Merged
M-Gabrielly merged 426 commits from develop into main 2025-12-04 04:13:15 +00:00
2 changed files with 4 additions and 45 deletions
Showing only changes of commit 82ac502553 - Show all commits

View File

@ -504,15 +504,9 @@ export default function LaudosEditorPage() {
</div>
)}
{/* Solicitante e Prazo */}
{/* Prazo */}
{pacienteSelecionado && (
<div className="mt-3 sm:mt-4 grid grid-cols-1 sm:grid-cols-2 gap-2 sm:gap-3">
<div>
<Label htmlFor="solicitante" className="text-xs sm:text-sm">
Solicitante
</Label>
<Input id="solicitante" value={solicitanteNome} readOnly disabled className="text-xs sm:text-sm mt-1 h-8 sm:h-10" />
</div>
<div className="mt-3 sm:mt-4">
<div>
<Label htmlFor="prazoDate" className="text-xs sm:text-sm">
Prazo do Laudo

View File

@ -977,48 +977,13 @@ export default function ResultadosClient() {
<span className="ml-auto text-sm font-semibold text-primary">{precoTipoConsulta}</span>
</div>
{/* Próximos horários */}
{!isLoadingAgenda && (
<div className="space-y-2">
<p className="text-xs font-semibold text-muted-foreground">Próximos horários disponíveis:</p>
{proximos3Horarios.length > 0 ? (
<div className="flex gap-2 flex-wrap">
{proximos3Horarios.map(slot => (
<button
key={slot.iso}
type="button"
className="px-3 py-1.5 text-xs font-medium rounded-lg bg-primary/10 text-primary hover:bg-primary hover:text-primary-foreground transition"
onClick={() => openConfirmDialog(id, slot.iso)}
>
{slot.label}
</button>
))}
</div>
) : (
<p className="text-xs text-muted-foreground">Carregando horários...</p>
)}
</div>
)}
{/* Ações */}
<div className="flex gap-2 pt-2">
<Button
className="flex-1 h-10 rounded-full bg-primary text-primary-foreground hover:bg-primary/90"
onClick={async () => {
if (!agendaByDoctor[id]) {
const nearest = await loadAgenda(id)
if (nearest) {
openConfirmDialog(id, nearest.iso)
return
}
}
const nearest = nearestSlotByDoctor[id]
if (nearest) {
openConfirmDialog(id, nearest.iso)
} else {
setMoreTimesForDoctor(id)
void fetchSlotsForDate(id, moreTimesDate)
}
}}
>
Agendar