Skip to content

Commit

Permalink
fix: Add sorting function to DialogList
Browse files Browse the repository at this point in the history
  • Loading branch information
mbacherycz committed Mar 3, 2025
1 parent 005106f commit 8c2c82b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"i18n:sort": "tsx ./src/i18n/check.ts --sort"
},
"dependencies": {
"@altinn/altinn-components": "^0.19.1",
"@altinn/altinn-components": "^0.19.3",
"@digdir/designsystemet-css": "1.0.0-next.50",
"@digdir/designsystemet-react": "1.0.0-next.50",
"@digdir/designsystemet-theme": "1.0.0-next.50",
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/Inbox/Inbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const Inbox = ({ viewType }: InboxProps) => {
</section>
<Section spacing={3} margin="section">
{dataSourceSuccess && !filteredItems.length && <h1>{t(`inbox.heading.title.${viewType}`, { count: 0 })}</h1>}
<DialogList items={mappedGroupedDialogs} groups={groups} />
<DialogList items={mappedGroupedDialogs} groups={groups} sortGroupBy={([a], [b]) => b.localeCompare(a)} />
</Section>
</>
);
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8c2c82b

Please sign in to comment.