fix: whiteLabeling should support component creation by passing React to defined fn (#1659)

This commit is contained in:
Danny Brown authored and GitHub committed 2020-04-22 16:16:53 -04:00
1 parent b1dad6b61b
commit 2093a00365
18 files changed
+86 -78

No files matched your search

@@ -0,0 +1,10 @@
import OHIFLogo from '../components/OHIFLogo/OHIFLogo.js';
import React from 'react';
const defaultContextValues = {
createLogoComponentFn: React => OHIFLogo(),
};
const WhiteLabelingContext = React.createContext(defaultContextValues);
export default WhiteLabelingContext;
@@ -1,10 +0,0 @@
import OHIFLogo from '../components/OHIFLogo/OHIFLogo.js';
import React from 'react';
const defaultContextValues = {
logoComponent: OHIFLogo(),
};
const WhiteLabellingContext = React.createContext(defaultContextValues);
export default WhiteLabellingContext;