run prettier formatting

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2021-08-09 11:42:22 +02:00
parent 467b758a7a
commit 923491eece
311 changed files with 1449 additions and 1667 deletions
@@ -34,7 +34,11 @@ import { useApi } from '@backstage/core-plugin-api';
const Body = () => {
const catalogApi = useApi(catalogApiRef);
const { value: entities, loading, error } = useAsync(async () => {
const {
value: entities,
loading,
error,
} = useAsync(async () => {
const response = await catalogApi.getEntities({
filter: { kind: 'domain' },
});
@@ -119,7 +119,11 @@ export function GroupsDiagram() {
const catalogApi = useApi(catalogApiRef);
const organizationName =
configApi.getOptionalString('organization.name') ?? 'Backstage';
const { loading, error, value: catalogResponse } = useAsync(() => {
const {
loading,
error,
value: catalogResponse,
} = useAsync(() => {
return catalogApi.getEntities({
filter: {
kind: ['Group'],
@@ -33,7 +33,11 @@ import { useApi } from '@backstage/core-plugin-api';
const Body = () => {
const exploreToolsConfigApi = useApi(exploreToolsConfigRef);
const { value: tools, loading, error } = useAsync(async () => {
const {
value: tools,
loading,
error,
} = useAsync(async () => {
return await exploreToolsConfigApi.getTools();
}, [exploreToolsConfigApi]);