diff --git a/src/fireedge/src/client/dev/_app.js b/src/fireedge/src/client/dev/_app.js index 23ada17e91..4da13d4b42 100644 --- a/src/fireedge/src/client/dev/_app.js +++ b/src/fireedge/src/client/dev/_app.js @@ -21,6 +21,12 @@ import ProvisionApp from 'client/apps/provision' import { isDevelopment, isBackend } from 'client/utils' import { _APPS, APPS } from 'client/constants' +/** + * Render App by url: http:///fireedge/. + * + * @param {object} props - Props from server + * @returns {React.JSXElementConstructor} Returns App + */ const DevelopmentApp = props => { let appName = '' @@ -36,12 +42,10 @@ const DevelopmentApp = props => { }) } - return ( - <> - {appName === _APPS.provision.name && } - {appName === _APPS.sunstone.name && } - - ) + return { + [_APPS.provision.name]: , + [_APPS.sunstone.name]: + }[appName] } DevelopmentApp.displayName = 'DevelopmentApp'