From 4ab90185779adaed7233336cf22945f148ded5c0 Mon Sep 17 00:00:00 2001 From: Saksham Date: Mon, 2 Sep 2024 16:51:51 +0200 Subject: [PATCH] overridden: Add Banner to all pages --- demo-invenioils/ui/src/overridableMapping.js | 4 ++++ demo-invenioils/ui/src/overridden/CustomBanner.js | 15 +++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 demo-invenioils/ui/src/overridden/CustomBanner.js diff --git a/demo-invenioils/ui/src/overridableMapping.js b/demo-invenioils/ui/src/overridableMapping.js index 0f2b240..f88474d 100644 --- a/demo-invenioils/ui/src/overridableMapping.js +++ b/demo-invenioils/ui/src/overridableMapping.js @@ -4,6 +4,7 @@ import { } from './overridden/components/Menu'; import { LoginDocs } from './overridden/authentication/Login'; import { FeaturesRoute } from './overridden/routes/FrontsiteUrls'; +import { CustomBanner } from './overridden/CustomBanner'; export const overriddenCmps = { 'SectionsWrapper.servicesInstallationSections': () => null, @@ -11,4 +12,7 @@ export const overriddenCmps = { 'ILSMenu.RightMenuItemsMobile': RightMenuItemMobile, 'Login.layout.extras': LoginDocs, 'FrontSite.CustomRoute': FeaturesRoute, + 'Login.extras': CustomBanner, + 'BackOffice.extras': CustomBanner, + 'FrontSite.extras': CustomBanner, }; diff --git a/demo-invenioils/ui/src/overridden/CustomBanner.js b/demo-invenioils/ui/src/overridden/CustomBanner.js new file mode 100644 index 0000000..0e1d54e --- /dev/null +++ b/demo-invenioils/ui/src/overridden/CustomBanner.js @@ -0,0 +1,15 @@ +import React from 'react'; +import { Message } from 'semantic-ui-react'; + +export const CustomBanner = () => { + return ( + +
This is the Invenio ILS demo instance: data might be periodically deleted and recreated.', + }} + /> + + ); +};