Skip to content

Commit

Permalink
make <p> tag <li> in patient list
Browse files Browse the repository at this point in the history
  • Loading branch information
Jexsie committed Jun 15, 2023
1 parent 7d7151a commit 80627ab
Showing 1 changed file with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,24 @@ const PatientLists: React.FC<{ patientUuid: string }> = ({ patientUuid }) => {
totalLists: cohorts.length,
})}
</p>
{slicedLists.map((cohort) => (
<p>
<ConfigurableLink to={`${window.spaBase}/home/patient-lists/${cohort.uuid}`} key={cohort.uuid}>
{cohort.name}
<ul>
{slicedLists.map((cohort) => (
<li>
<ConfigurableLink to={`${window.spaBase}/home/patient-lists/${cohort.uuid}`} key={cohort.uuid}>
{cohort.name}
</ConfigurableLink>
</li>
))}
<li>
<ConfigurableLink to={`${window.spaBase}/home/patient-lists`}>
{cohorts.length > 3
? t('seeMore', 'See {moreLists} more', {
moreLists: cohorts?.length - 3,
})
: ''}
</ConfigurableLink>
</p>
))}
<p>
<ConfigurableLink to={`${window.spaBase}/home/patient-lists`}>
{cohorts.length > 3
? t('seeMore', 'See {moreLists} more', {
moreLists: cohorts?.length - 3,
})
: ''}
</ConfigurableLink>
</p>
</li>
</ul>
</>
);
}
Expand Down

0 comments on commit 80627ab

Please sign in to comment.