How to use the @talend/react-components/lib/AppLoader/constant.default.getLoaderStyle function in @talend/react-components

To help you get started, we’ve selected a few @talend/react-components examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Talend / ui / packages / html-webpack-plugin / index.js View on Github external
return head;
				});
			}
			if (options.versions) {
				data.body.splice(0, 0, {
					tagName: 'script',
					closeTag: true,
					innerHTML: `TALEND_APP_INFO=${JSON.stringify(options.versions)}`,
					attributes: { type: 'text/javascript' },
				});
			}
			if (options.appLoaderIcon) {
				data.head.splice(0, 0, {
					tagName: 'style',
					closeTag: true,
					innerHTML: AppLoader.getLoaderStyle(options.appLoaderIcon),
				});
			}
			return data;
		});
	});