Unverified Commit 1b006a98 authored by Florent Chehab's avatar Florent Chehab
Browse files

chore: cleaned show unlinked partners

parent 4de5d573
...@@ -213,7 +213,7 @@ class UnlinkedUtcPartners(ViewSet): ...@@ -213,7 +213,7 @@ class UnlinkedUtcPartners(ViewSet):
partners = Partner.objects.filter(university=None) partners = Partner.objects.filter(university=None)
return Response( return Response(
list(map(lambda partner: (partner.utc_id, partner.univ_name), partners)) [dict(partner_id=p.utc_id, partner_univ_name=p.univ_name) for p in partners]
) )
......
...@@ -21,14 +21,18 @@ function UnlinkedPartners({ unlinkedPartners, variant }) { ...@@ -21,14 +21,18 @@ function UnlinkedPartners({ unlinkedPartners, variant }) {
{nUnlinked > 0 ? ( {nUnlinked > 0 ? (
<> <>
<Typography> <Typography>
{nUnlinked} Actuellement, {nUnlinked}
&nbsp; partenaires sont dans ce cas. En voici la liste : &nbsp; partenaires sont dans ce cas. En voici la liste :
</Typography> </Typography>
<List aria-label="List des partenaires qui ne sont pas encore disponibles sur la plateforme REX-DRI"> <List aria-label="List des partenaires qui ne sont pas encore disponibles sur la plateforme REX-DRI">
{unlinkedPartners.map((nameOnEnt, idx) => ( {unlinkedPartners.map((p, idx) => (
// eslint-disable-next-line react/no-array-index-key // eslint-disable-next-line react/no-array-index-key
<ListItem key={idx}> <ListItem key={idx}>
<ListItemText primary={nameOnEnt} /> <ListItemText
primary={`${
p.partner_id
} ${p.partner_univ_name.toLowerCase()}`}
/>
</ListItem> </ListItem>
))} ))}
</List> </List>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment