Skip to content

Commit

Permalink
Subscription Integration
Browse files Browse the repository at this point in the history
  • Loading branch information
barshathakuri committed Nov 22, 2024
1 parent 3a2fe7e commit 9d0caac
Show file tree
Hide file tree
Showing 4 changed files with 236 additions and 106 deletions.
15 changes: 8 additions & 7 deletions src/views/Home/AlertsMap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,14 @@ export function Component() {
);

const defaultSubscription = useMemo(() => ({
id: '',
title: '',
urgency: selectedUrgencyTypes,
severity: selectedSeverityTypes,
certainty: selectedCertaintyTypes,
country: activeCountryId,
admin1: activeAdmin1Id,
name: '',
alertFilters: {
urgency: selectedUrgencyTypes,
severity: selectedSeverityTypes,
certainty: selectedCertaintyTypes,
country: activeCountryId ?? '',
admin1s: activeAdmin1Id ? [activeAdmin1Id] : [],
},
}), [
selectedUrgencyTypes,
selectedSeverityTypes,
Expand Down
15 changes: 8 additions & 7 deletions src/views/Home/AlertsTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,13 +288,14 @@ export function Component() {
);

const defaultSubscription = useMemo(() => ({
id: '',
title: '',
urgency: selectedUrgencyTypes,
severity: selectedSeverityTypes,
certainty: selectedCertaintyTypes,
country: activeCountryId,
admin1: activeAdmin1Id,
name: '',
alertFilters: {
urgency: selectedUrgencyTypes,
severity: selectedSeverityTypes,
certainty: selectedCertaintyTypes,
country: activeCountryId ?? '',
admin1s: activeAdmin1Id ? [activeAdmin1Id] : [],
},
}), [
selectedUrgencyTypes,
selectedSeverityTypes,
Expand Down
6 changes: 5 additions & 1 deletion src/views/NewSubscriptionModal/i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"filterUrgencyPlaceholder": "All Urgency Types",
"filterSeverityPlaceholder": "All Severity Types",
"filterCertaintyPlaceholder": "All Certainty Types",
"filterCategoryPlaceholder": "All Category Types",
"filterCategoryLabel": "Category",
"filterCountriesLabel": "Country",
"filterAdmin1Label": "Admin1",
"filterUrgencyLabel": "Urgency Level",
Expand All @@ -16,6 +18,8 @@
"filterRegionsLabel": "Regions",
"filterRegionsPlaceholder": "All Regions",
"newSubscriptionHeading": "New Subscription",
"newSubscriptionTitle": "Title"
"newSubscriptionTitle": "Title",
"newSubscriptionCreatedSucessfully": "Subscription created successfully.",
"newSubscriptionFailed": "Failed to create subscription"
}
}
Loading

0 comments on commit 9d0caac

Please sign in to comment.