Merge pull request #17567 from efenner-cambia/patch-1
Fix example code in Explore plugin README
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-explore': patch
|
||||
---
|
||||
|
||||
Updated the example code in the "Customization" section of the README to make the imports match the components used.
|
||||
@@ -104,11 +104,11 @@ Create a custom explore page in
|
||||
|
||||
```tsx
|
||||
import {
|
||||
DomainExplorerContent,
|
||||
CatalogKindExploreContent,
|
||||
ExploreLayout,
|
||||
} from '@backstage/plugin-explore';
|
||||
import React from 'react';
|
||||
import { InnserSourceExplorerContent } from './InnserSourceExplorerContent';
|
||||
import { InnerSourceExploreContent } from './InnerSourceExploreContent';
|
||||
|
||||
export const ExplorePage = () => {
|
||||
return (
|
||||
@@ -123,7 +123,7 @@ export const ExplorePage = () => {
|
||||
<CatalogKindExploreContent kind="system" />
|
||||
</ExploreLayout.Route>
|
||||
<ExploreLayout.Route path="inner-source" title="InnerSource">
|
||||
<AcmeInnserSourceExplorerContent />
|
||||
<InnerSourceExploreContent />
|
||||
</ExploreLayout.Route>
|
||||
</ExploreLayout>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user