diff --git a/src/common/constants.js b/src/common/constants.js index 01bd0626..b4d74f26 100644 --- a/src/common/constants.js +++ b/src/common/constants.js @@ -7,6 +7,8 @@ * graphic logo is a trademark of OpenMRS Inc. */ +export const bahmniHomePath = '/bahmni/home'; + const noOfFormsExportLimit = 20; export const commonConstants = { responseType: { diff --git a/src/form-builder/components/FormBuilderHeader.jsx b/src/form-builder/components/FormBuilderHeader.jsx index 869bfbe8..a5a2fb30 100644 --- a/src/form-builder/components/FormBuilderHeader.jsx +++ b/src/form-builder/components/FormBuilderHeader.jsx @@ -8,22 +8,28 @@ */ import React from 'react'; +import { bahmniHomePath } from '../../common/constants'; -const Header = () => -
-
-
- -
+const Header = () => { + const homeUrl = (typeof localStorage !== 'undefined' && localStorage.getItem('homeUrl')) + || bahmniHomePath; + return ( +
+
+
+ +
+
-
; + ); +}; export default Header;