From 0ecfbc50b04537a20b477dce52f41ec0fbc916b8 Mon Sep 17 00:00:00 2001 From: samshara Date: Tue, 26 Nov 2024 15:29:03 +0545 Subject: [PATCH] feat: use GDACS as the primary source for Imminent Risk Watch --- .changeset/pink-beans-develop.md | 5 ++ .../domain/RiskImminentEvents/index.tsx | 56 +++++++++---------- 2 files changed, 33 insertions(+), 28 deletions(-) create mode 100644 .changeset/pink-beans-develop.md diff --git a/.changeset/pink-beans-develop.md b/.changeset/pink-beans-develop.md new file mode 100644 index 000000000..0cc8b7df2 --- /dev/null +++ b/.changeset/pink-beans-develop.md @@ -0,0 +1,5 @@ +--- +"go-web-app": patch +--- + +Prioritize GDACS as the Primary Source for Imminent Risk Watch in [#1547](https://github.com/IFRCGo/go-web-app/issues/1547) diff --git a/app/src/components/domain/RiskImminentEvents/index.tsx b/app/src/components/domain/RiskImminentEvents/index.tsx index 8070d824f..1ab7884a7 100644 --- a/app/src/components/domain/RiskImminentEvents/index.tsx +++ b/app/src/components/domain/RiskImminentEvents/index.tsx @@ -57,7 +57,7 @@ type Props = BaseProps & ({ function RiskImminentEvents(props: Props) { const { className, - defaultSource = 'pdc', + defaultSource = 'gdacs', ...otherProps } = props; const [activeView, setActiveView] = useState(defaultSource); @@ -168,6 +168,33 @@ function RiskImminentEvents(props: Props) { footerActionsContainerClassName={styles.footerActions} footerActions={( <> + + {strings.here} + + ), + }, + )} + /> + )} + /> )} - - {strings.here} - - ), - }, - )} - /> - )} - /> {environment !== 'production' && (