Skip to content

Commit

Permalink
Merge pull request #142 from IFRCGo/feature/resource-page
Browse files Browse the repository at this point in the history
hide start and end date
  • Loading branch information
frozenhelium authored Jul 23, 2024
2 parents ee6bb0e + 3e88511 commit 8e3610b
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 18 deletions.
6 changes: 3 additions & 3 deletions src/views/Home/AlertFilters/i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"filterCertaintyPlaceholder": "All Certainty Types",
"filterCountriesLabel": "Country",
"filterAdmin1Label": "Admin1",
"filterUrgencyLabel": "Urgency",
"filterSeverityLabel": "Severity",
"filterCertaintyLabel": "Certainty",
"filterUrgencyLabel": "Urgency Level",
"filterSeverityLabel": "Severity Level",
"filterCertaintyLabel": "Certainty Level",
"filterRegionsLabel": "Regions",
"filterRegionsPlaceholder": "All Regions",
"filterCategoriesLabel": "Event Categories",
Expand Down
12 changes: 7 additions & 5 deletions src/views/Home/AlertFilters/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
useQuery,
} from '@apollo/client';
import {
DateInput,
MultiSelectInput,
SelectInput,
} from '@ifrc-go/ui';
Expand Down Expand Up @@ -132,16 +131,16 @@ function AlertFilters(props: Props) {
selectedUrgencyTypes,
selectedCertaintyTypes,
activeRegionId,
startDateFrom,
startDateTo,
// startDateFrom,
// startDateTo,
setActiveCountryId,
setActiveAdmin1Id,
setSelectedSeverityTypes,
setSelectedUrgencyTypes,
setSelectedCertaintyTypes,
setActiveRegionId,
setStartDateFrom,
setStartDateTo,
// setStartDateFrom,
// setStartDateTo,
selectedCategoryTypes,
setSelectedCategoryTypes,
} = useContext(AlertDataContext);
Expand Down Expand Up @@ -232,6 +231,8 @@ function AlertFilters(props: Props) {
value={selectedCertaintyTypes}
onChange={setSelectedCertaintyTypes}
/>
{/*
Add these filter after adding Historical alerts
<DateInput
name="startDateFrom"
label={strings.filterStartDateFrom}
Expand All @@ -244,6 +245,7 @@ function AlertFilters(props: Props) {
value={startDateTo}
onChange={setStartDateTo}
/>
*/}
{variant === 'table' && (
<MultiSelectInput
label={strings.filterCategoriesLabel}
Expand Down
6 changes: 3 additions & 3 deletions src/views/RootLayout/translations/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
{
"key": "filterCertaintyLabel",
"namespace": "alertFilters",
"value": "درجة التأكد"
"value": "مستوى التأكد"
},
{
"key": "filterCertaintyPlaceholder",
Expand Down Expand Up @@ -197,7 +197,7 @@
{
"key": "filterSeverityLabel",
"namespace": "alertFilters",
"value": "الخطورة"
"value": "مستوى الخطورة"
},
{
"key": "filterSeverityPlaceholder",
Expand All @@ -217,7 +217,7 @@
{
"key": "filterUrgencyLabel",
"namespace": "alertFilters",
"value": "الإلحاح"
"value": "مستوى الإلحاح"
},
{
"key": "filterUrgencyPlaceholder",
Expand Down
6 changes: 3 additions & 3 deletions src/views/RootLayout/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
{
"key": "filterCertaintyLabel",
"namespace": "alertFilters",
"value": "Certeza"
"value": "Nivel de Certidumbre"
},
{
"key": "filterCertaintyPlaceholder",
Expand Down Expand Up @@ -197,7 +197,7 @@
{
"key": "filterSeverityLabel",
"namespace": "alertFilters",
"value": "Gravedad"
"value": " Nivel de Severidad"
},
{
"key": "filterSeverityPlaceholder",
Expand All @@ -217,7 +217,7 @@
{
"key": "filterUrgencyLabel",
"namespace": "alertFilters",
"value": "Urgencia"
"value": "Nivel de Urgencia"
},
{
"key": "filterUrgencyPlaceholder",
Expand Down
6 changes: 3 additions & 3 deletions src/views/RootLayout/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
{
"key": "filterCertaintyLabel",
"namespace": "alertFilters",
"value": "Certitude"
"value": "Niveau de Certitude"
},
{
"key": "filterCertaintyPlaceholder",
Expand Down Expand Up @@ -197,7 +197,7 @@
{
"key": "filterSeverityLabel",
"namespace": "alertFilters",
"value": "Gravité"
"value": "Niveau de Gravité"
},
{
"key": "filterSeverityPlaceholder",
Expand All @@ -217,7 +217,7 @@
{
"key": "filterUrgencyLabel",
"namespace": "alertFilters",
"value": "Urgence"
"value": "Niveau d'Urgence"
},
{
"key": "filterUrgencyPlaceholder",
Expand Down

0 comments on commit 8e3610b

Please sign in to comment.