Skip to content

Commit

Permalink
Add count of All alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
roshni73 committed Apr 24, 2024
1 parent f46a027 commit b4677fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/views/Home/AlertsTable/i18n.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"namespace": "allOngoingAlerts",
"strings": {
"allOngoingAlertTitle":"All Alerts ",
"allOngoingAlertTitle":"All Alerts ({numAppeals}) ",
"alertTableEventTitle":"Event" ,
"alertTableCategoryTitle":"Event Categories",
"alertTableRegionTitle":"Region",
Expand Down
7 changes: 6 additions & 1 deletion src/views/Home/AlertsTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
createDateColumn,
createListDisplayColumn,
createStringColumn,
resolveToComponent,
} from '@ifrc-go/ui/utils';
import {
isDefined,
Expand Down Expand Up @@ -211,11 +212,15 @@ function AlertsTable() {
strings.alertTableViewDetailsTitle,
],
);
const heading = resolveToComponent(
strings.allOngoingAlertTitle,
{ numAppeals: data?.count ?? '' },
);

return (
<Container
className={styles.alertsTable}
heading={strings.allOngoingAlertTitle}
heading={heading}
withHeaderBorder
withGridViewInFilter
footerActions={(
Expand Down

0 comments on commit b4677fd

Please sign in to comment.