Merge pull request #21602 from backstage/blam/fix-header-optiosn
Fixing `headerOptions` drilling
This commit is contained in:
@@ -85,6 +85,11 @@ export type TemplateWizardPageProps = {
|
||||
};
|
||||
layouts?: LayoutOptions[];
|
||||
formProps?: FormProps_3;
|
||||
headerOptions?: {
|
||||
pageTitleOverride?: string;
|
||||
title?: string;
|
||||
subtitle?: string;
|
||||
};
|
||||
};
|
||||
|
||||
// (No @packageDocumentation comment for this package)
|
||||
|
||||
@@ -142,6 +142,7 @@ export const Router = (props: PropsWithChildren<RouterProps>) => {
|
||||
element={
|
||||
<SecretsContextProvider>
|
||||
<TemplateWizardPageComponent
|
||||
headerOptions={props.headerOptions}
|
||||
customFieldExtensions={fieldExtensions}
|
||||
layouts={customLayouts}
|
||||
components={{ ReviewStepComponent }}
|
||||
|
||||
@@ -50,6 +50,11 @@ export type TemplateWizardPageProps = {
|
||||
};
|
||||
layouts?: LayoutOptions[];
|
||||
formProps?: FormProps;
|
||||
headerOptions?: {
|
||||
pageTitleOverride?: string;
|
||||
title?: string;
|
||||
subtitle?: string;
|
||||
};
|
||||
};
|
||||
|
||||
export const TemplateWizardPage = (props: TemplateWizardPageProps) => {
|
||||
@@ -87,6 +92,7 @@ export const TemplateWizardPage = (props: TemplateWizardPageProps) => {
|
||||
pageTitleOverride="Create a new component"
|
||||
title="Create a new component"
|
||||
subtitle="Create new software components using standard templates in your organization"
|
||||
{...props.headerOptions}
|
||||
/>
|
||||
<Workflow
|
||||
namespace={namespace}
|
||||
|
||||
Reference in New Issue
Block a user