Added a possibility to use a formatter for error titles. Applied it for scaffolder template

Signed-off-by: Bogdan Nechyporenko <bnechyporenko@bol.com>
This commit is contained in:
Bogdan Nechyporenko
2023-10-04 13:02:00 +02:00
parent ef3f517dd0
commit b13fa49108
3 changed files with 8 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
---
'@backstage/core-components': patch
'@backstage/plugin-scaffolder': patch
---
Add a possibility to use a formatter for on a warning panel. Applied it for a scaffolder template
+1
View File
@@ -384,6 +384,7 @@ export type ErrorPanelClassKey = 'text' | 'divider';
export type ErrorPanelProps = {
error: Error;
defaultExpanded?: boolean;
formatTitle?: string;
title?: string;
};
@@ -15,7 +15,7 @@
*/
import React from 'react';
import { fireEvent, screen, waitFor } from '@testing-library/react';
import { fireEvent, screen } from '@testing-library/react';
import { renderInTestApp } from '@backstage/test-utils';
import Typography from '@material-ui/core/Typography';
import { WarningPanel, WarningProps } from './WarningPanel';