Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed Jan 10, 2024
1 parent 2682ff4 commit d61b220
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions src/components/blocs/modification-journal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,29 +54,26 @@ export default function ModificationJournal() {
<Bloc isLoading={isLoading} error={error} data={data}>
<BlocTitle as="h1" look="h3">Journal des modifications</BlocTitle>
<BlocContent>
<>
<TagGroup>
{sortedUniqueUserNames.map((userName) => {
const modificationsCount = data?.data?.filter(
(el) => `${el.user.firstName} ${el.user.lastName}` === userName,
).length;

return (
<TagGroup key={userName}>
<Tag
onClick={() => handleUserFilter(userName)}
selected={selectedUser === userName}
className="no-span"
>
{userName}
{' '}
(
{modificationsCount}
)
</Tag>
</TagGroup>
<Tag
onClick={() => handleUserFilter(userName)}
selected={selectedUser === userName}
className="no-span"
>
{userName}
{' '}
(
{modificationsCount}
)
</Tag>
);
})}
</>
</TagGroup>
<Row gutters>
<Col n="12">
<Accordion keepOpen>
Expand Down

0 comments on commit d61b220

Please sign in to comment.