Skip to content

Commit

Permalink
fix(dashboard): on peut voir les équipes pour chaque consultation dan…
Browse files Browse the repository at this point in the history
…s les comptes-rendus (#1800)
  • Loading branch information
arnaudambro authored Dec 7, 2023
1 parent 73681de commit 769ac1d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions dashboard/src/scenes/report/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -1373,6 +1373,15 @@ const Consultations = ({ date, status, consultations, setSortOrder, setSortBy, s
sortOrder,
render: (consultation) => <ActionStatus status={consultation.status} />,
},
{
title: 'Équipe(s) en charge',
dataKey: 'team',
render: (a) => (
<div className="px-2 tw-flex tw-flex-shrink-0 tw-flex-col tw-gap-px">
{Array.isArray(a?.teams) ? a.teams.map((e) => <TagTeam key={e} teamId={e} />) : <TagTeam teamId={a?.team} />}
</div>
),
},
]}
/>
</StyledBox>
Expand Down Expand Up @@ -1430,6 +1439,15 @@ const ConsultationsCreatedAt = ({ date, consultations }) => {
render: (action) => <PersonName showOtherNames item={action} />,
},
{ title: 'Statut', dataKey: 'status', render: (action) => <ActionStatus status={action.status} /> },
{
title: 'Équipe(s) en charge',
dataKey: 'team',
render: (a) => (
<div className="px-2 tw-flex tw-flex-shrink-0 tw-flex-col tw-gap-px">
{Array.isArray(a?.teams) ? a.teams.map((e) => <TagTeam key={e} teamId={e} />) : <TagTeam teamId={a?.team} />}
</div>
),
},
]}
/>
</StyledBox>
Expand Down

0 comments on commit 769ac1d

Please sign in to comment.