From 1106b7ee04d2babb8f32592c52568a1ec4f6d357 Mon Sep 17 00:00:00 2001 From: Paul Cowan Date: Thu, 8 Dec 2022 15:12:43 +0000 Subject: [PATCH] wrap TemplateWizardContent in Signed-off-by: Paul Cowan --- .../app/src/components/SecurityTab/SecurityTab.tsx | 4 ++-- .../TemplateWizardContent/TemplateWizardContent.tsx | 10 ++++++++++ .../scaffolder/src/next/TemplateWizardContent/index.ts | 5 ++++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/packages/app/src/components/SecurityTab/SecurityTab.tsx b/packages/app/src/components/SecurityTab/SecurityTab.tsx index 3a40f9c1d7..69c2455ea5 100644 --- a/packages/app/src/components/SecurityTab/SecurityTab.tsx +++ b/packages/app/src/components/SecurityTab/SecurityTab.tsx @@ -16,7 +16,7 @@ import React from 'react'; import { - TemplateWizardContent, + TemplateContent, useGetCustomFields, } from '@backstage/plugin-scaffolder'; @@ -37,7 +37,7 @@ export function SecurityTab({ const fieldExtensions = useGetCustomFields(customExtensionsElement); return ( - (() => ({ markdown: { @@ -110,3 +114,9 @@ export const TemplateWizardContent = ( ); }; + +export const TemplateContent = (props: TemplateWizardContentProps) => ( + + + +); diff --git a/plugins/scaffolder/src/next/TemplateWizardContent/index.ts b/plugins/scaffolder/src/next/TemplateWizardContent/index.ts index 3fda3efb4f..fdb0589cc2 100644 --- a/plugins/scaffolder/src/next/TemplateWizardContent/index.ts +++ b/plugins/scaffolder/src/next/TemplateWizardContent/index.ts @@ -13,4 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -export { TemplateWizardContent } from './TemplateWizardContent'; +export { + TemplateWizardContent, + TemplateContent, +} from './TemplateWizardContent';