Merge pull request #5032 from backstage/timbonicus/create-app-updates

Update create-app template for better parity with example app
This commit is contained in:
Tim
2021-03-25 06:23:36 -06:00
committed by GitHub
17 changed files with 301 additions and 91 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ import { hot } from 'react-hot-loader/root';
import { Navigate, Route } from 'react-router';
import { apis } from './apis';
import { EntityPage } from './components/catalog/EntityPage';
import Root from './components/Root';
import { Root } from './components/Root';
import { providers } from './identityProviders';
import * as plugins from './plugins';
+1 -3
View File
@@ -73,7 +73,7 @@ const SidebarLogo = () => {
);
};
const Root = ({ children }: PropsWithChildren<{}>) => (
export const Root = ({ children }: PropsWithChildren<{}>) => (
<SidebarPage>
<Sidebar>
<SidebarLogo />
@@ -98,5 +98,3 @@ const Root = ({ children }: PropsWithChildren<{}>) => (
{children}
</SidebarPage>
);
export default Root;
+1 -1
View File
@@ -14,4 +14,4 @@
* limitations under the License.
*/
export { default } from './Root';
export { Root } from './Root';
@@ -513,6 +513,9 @@ export const EntityPage = () => {
return <SystemEntityPage entity={entity} />;
case 'domain':
return <DomainEntityPage entity={entity} />;
case 'location':
case 'resource':
case 'template':
default:
return <DefaultEntityPage entity={entity} />;
}