Skip to content

Commit

Permalink
TACKLE-531: Spanish filters for report adoption candidate distributio…
Browse files Browse the repository at this point in the history
…n and identified risks (#294)

* Spanish: reports filters

* fixup! Spanish: reports filters

* fixup! fixup! Spanish: reports filters
  • Loading branch information
gildub committed Jun 23, 2022
1 parent 268e94f commit 278e93e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,12 @@ export const AdoptionCandidateTable: React.FunctionComponent<
const filterCategories: FilterCategory<TableRowData>[] = [
{
key: "name",
title: "Name",
title: t("terms.name"),
type: FilterType.search,
placeholderText: "Filter by name...",
placeholderText:
t("actions.filterBy", {
what: t("terms.name").toLowerCase(),
}) + "...",
getItemValue: (item) => {
return item?.application.name || "";
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,36 +136,48 @@ export const IdentifiedRisksTable: React.FC<
const filterCategories: FilterCategory<ITableRowData>[] = [
{
key: "category",
title: "Category",
title: t("terms.category"),
type: FilterType.search,
placeholderText: "Filter by category...",
placeholderText:
t("actions.filterBy", {
what: t("terms.category").toLowerCase(),
}) + "...",
getItemValue: (item) => {
return item?.category || "";
},
},
{
key: "question",
title: "Question",
title: t("terms.question"),
type: FilterType.search,
placeholderText: "Filter by question...",
placeholderText:
t("actions.filterBy", {
what: t("terms.question").toLowerCase(),
}) + "...",
getItemValue: (item) => {
return item?.question || "";
},
},
{
key: "answer",
title: "Answer",
title: t("terms.answer"),
type: FilterType.search,
placeholderText: "Filter by answer...",
placeholderText:
t("actions.filterBy", {
what: t("terms.answer").toLowerCase(),
}) + "...",
getItemValue: (item) => {
return item?.answer || "";
},
},
{
key: "applications",
title: "Name",
title: t("terms.name"),
type: FilterType.search,
placeholderText: "Filter by name...",
placeholderText:
t("actions.filterBy", {
what: t("terms.name").toLowerCase(),
}) + "...",
getItemValue: (item) => {
const applicationNames = item?.applications.map((app) => app.name);
return applicationNames?.join("") || "";
Expand Down

0 comments on commit 278e93e

Please sign in to comment.