Minor fixes

This commit is contained in:
Marek Calus
2020-11-12 17:40:42 +01:00
parent 7008e042f9
commit b6ac3b87ac
2 changed files with 3 additions and 3 deletions
@@ -39,6 +39,7 @@ import { generatePath, resolvePath } from 'react-router';
import { entityRoute, entityRouteParams } from '@backstage/plugin-catalog';
import { Entity } from '@backstage/catalog-model';
import { Link as RouterLink } from 'react-router-dom';
import * as YAML from 'yaml';
const getEntityCatalogPath = ({
entity,
@@ -113,7 +114,7 @@ const ComponentConfigDisplay = ({
<Grid item>
{!parseGitUri(configFile.location).filepathtype ? (
<pre>{JSON.stringify(configFile.config, null, 2)}</pre>
<pre>{YAML.stringify(configFile.config)}</pre>
) : (
<List>
{configFile.config.map((entity: any, index: number) => {
@@ -16,7 +16,6 @@
import React from 'react';
import { Alert } from '@material-ui/lab';
import { Link as RouterLink } from 'react-router-dom';
import { Button, Grid, Link } from '@material-ui/core';
type Props = {
@@ -46,7 +45,7 @@ export const ImportFinished = ({ nextStep, PRLink, type }: Props) => {
color="primary"
onClick={() => nextStep({ reset: true })}
>
Start again
Register another
</Button>
</Grid>
</Grid>