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:
@@ -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
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user