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:
@@ -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';
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user