From 5ed2159ab7428463d04d85e7de387f5eb0126368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Gu=CC=88hne?= Date: Fri, 20 Aug 2021 16:39:56 +0200 Subject: [PATCH] feat(BannerNavigation): new content added --- .../BannerNavigationWithContent.js | 74 +++++-------------- 1 file changed, 18 insertions(+), 56 deletions(-) diff --git a/src/components/BannerNavigation/BannerNavigationWithContent.js b/src/components/BannerNavigation/BannerNavigationWithContent.js index f4942ff8e..0d0ffef88 100644 --- a/src/components/BannerNavigation/BannerNavigationWithContent.js +++ b/src/components/BannerNavigation/BannerNavigationWithContent.js @@ -4,66 +4,28 @@ import { BannerNavigation, BannerNavigationItem } from './BannerNavigation'; import Search from '../Search'; import Link from '../Link'; +const linkList = [ + { name: 'WFPgo', link: 'https://go.wfp.org/' }, + { name: 'Communities', link: 'https://communities.wfp.org/' }, + { name: 'Manuals', link: 'https://manuals.wfp.org/' }, + { name: 'GoDocs', link: 'https://godocs.wfp.org/' }, + { name: 'WeLearn', link: 'https://welearn.wfp.org/' }, + { name: 'Dashboard', link: 'https://dashboard.wfp.org/' }, + { name: 'OPweb', link: 'https://opweb.wfp.org/' }, + { name: 'Self-Service', link: 'https://selfservice.go.wfp.org/' }, + { name: 'UN Booking Hub', link: 'https://humanitarianbooking.wfp.org/' }, + { name: 'WFP.org', link: 'https://wfp.org/' }, +]; + const BannerNavigationWithContent = ({ searchOnChange, search, ...other }) => ( - - - WFPgo - - - - - Self-Service - - - - - Communities - - - - - Manuals - - - - - GoDocs - - - - - Data - - - - - OPweb - - - - - WeLearn - - - {search && ( + {linkList.map((e) => ( -
- - + + {e.name} +
- )} + ))}
);