Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: DX-1831 - Connect OECD data federated search to frontend #256

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export default function ExternalSearch(props: {
{ name: "WHO", value: "WHO" },
{ name: "HDX", value: "HDX" },
{ name: "The Global Fund", value: "TGF" },
{ name: "OECD", value: "OECD" },
];

const { isObserved } = useInfinityScroll(observerTarget);
Expand Down Expand Up @@ -93,7 +94,7 @@ export default function ExternalSearch(props: {
}&source=${
props.sources.length
? props.sources.join(",")
: "Kaggle,World Bank,WHO,HDX,TGF"
: "Kaggle,World Bank,WHO,HDX,TGF,OECD"
}&offset=${offset}&limit=${limit}&sortBy=${sortValue}`,
{
signal: abortControllerRef.current.signal,
Expand Down
9 changes: 9 additions & 0 deletions src/app/modules/home-module/assets/oecd-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import KaggleLogo from "app/modules/home-module/assets/kaggle-logo.svg";
import WorldBankLogo from "app/modules/home-module/assets/world-bank-logo.svg";
import HDXLogo from "app/modules/home-module/assets/hdx-logo.svg";
import TGFLogo from "app/modules/home-module/assets/tgf-logo.svg";
import OECDLogo from "app/modules/home-module/assets/oecd-logo.svg";
import { ReactComponent as ClockIcon } from "app/modules/home-module/assets/clock-icon.svg";

import moment from "moment";
Expand Down Expand Up @@ -34,6 +35,8 @@ export default function ExternalDatasetCard(
return <img src={HDXLogo} alt="hdx-logo" />;
case "TGF":
return <img src={TGFLogo} alt="tgf-logo" />;
case "OECD":
return <img src={OECDLogo} alt="oecd-logo" />;
default:
return <div />;
}
Expand Down
Loading