Update code block in quickstart-app-plugin tutorial to use named import.

Signed-off-by: Brent Sharrow <bsharrow4@gmail.com>
This commit is contained in:
Brent Sharrow
2021-06-18 11:45:59 -05:00
parent 3ee2b89bb7
commit 64ebeb6026
2 changed files with 2 additions and 6 deletions
@@ -76,7 +76,7 @@ export const DenseTable = ({ viewer }: DenseTableProps) => {
);
};
const ExampleFetchComponent = () => {
export const ExampleFetchComponent = () => {
const auth = useApi(githubAuthApiRef);
const { value, loading, error } = useAsync(async (): Promise<any> => {
@@ -106,6 +106,4 @@ const ExampleFetchComponent = () => {
/>
);
};
export default ExampleFetchComponent;
```
+1 -3
View File
@@ -146,11 +146,9 @@ import {
} from '@backstage/core';
import { graphql } from '@octokit/graphql';
const ExampleFetchComponent = () => {
export const ExampleFetchComponent = () => {
return <div>Nothing to see yet</div>;
};
export default ExampleFetchComponent;
```
3. Save that and ensure you see no errors. Comment out the unused imports if