feat: adicionar AvatarUpload editável na barra lateral do paciente
This commit is contained in:
parent
ad6fadc17a
commit
227e67fa04
@ -23,7 +23,7 @@ import { useAuth } from "../hooks/useAuth";
|
|||||||
import { appointmentService, doctorService, reportService } from "../services";
|
import { appointmentService, doctorService, reportService } from "../services";
|
||||||
import type { Report } from "../services/reports/types";
|
import type { Report } from "../services/reports/types";
|
||||||
import AgendamentoConsulta from "../components/AgendamentoConsulta";
|
import AgendamentoConsulta from "../components/AgendamentoConsulta";
|
||||||
import { Avatar } from "../components/ui/Avatar";
|
import { AvatarUpload } from "../components/ui/AvatarUpload";
|
||||||
|
|
||||||
interface Consulta {
|
interface Consulta {
|
||||||
_id: string;
|
_id: string;
|
||||||
@ -284,11 +284,14 @@ const AcompanhamentoPaciente: React.FC = () => {
|
|||||||
{/* Patient Profile */}
|
{/* Patient Profile */}
|
||||||
<div className="p-6 border-b border-gray-200 dark:border-slate-700">
|
<div className="p-6 border-b border-gray-200 dark:border-slate-700">
|
||||||
<div className="flex items-center gap-3">
|
<div className="flex items-center gap-3">
|
||||||
<Avatar
|
<AvatarUpload
|
||||||
src={avatarUrl}
|
userId={user?.id}
|
||||||
|
currentAvatarUrl={avatarUrl}
|
||||||
name={pacienteNome}
|
name={pacienteNome}
|
||||||
size="md"
|
|
||||||
color="blue"
|
color="blue"
|
||||||
|
size="lg"
|
||||||
|
editable={true}
|
||||||
|
onAvatarUpdate={(url) => setAvatarUrl(url || undefined)}
|
||||||
/>
|
/>
|
||||||
<div>
|
<div>
|
||||||
<p className="font-medium text-gray-900 dark:text-white">
|
<p className="font-medium text-gray-900 dark:text-white">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user