Rename entity() to createEntity()

Signed-off-by: Karan Shah <karan.shah@simplybusiness.co.uk>
This commit is contained in:
Karan Shah
2022-01-11 10:45:29 +00:00
parent 87ffa4698d
commit 35ab9befba
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ import {
} from '@backstage/core-components';
import { airbrakeApiRef, MockAirbrakeApi } from '../src/api';
import { EntityProvider } from '@backstage/plugin-catalog-react';
import { entity } from '../src/api/mock/mock-entity';
import { createEntity } from '../src/api/mock/mock-entity';
createDevApp()
.registerPlugin(airbrakePlugin)
@@ -51,7 +51,7 @@ createDevApp()
A description of your plugin goes here.
</SupportButton>
</ContentHeader>
<EntityProvider entity={entity('demo')}>
<EntityProvider entity={createEntity('demo')}>
<EntityAirbrakeContent />
</EntityProvider>
</Content>