From 7a69aaef1c5249a585c33536616485799c291609 Mon Sep 17 00:00:00 2001 From: Paul Cowan Date: Mon, 12 Dec 2022 12:04:23 +0000 Subject: [PATCH] add initialState Signed-off-by: Paul Cowan --- .../app/src/components/SecurityTab/SecurityTab.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/app/src/components/SecurityTab/SecurityTab.tsx b/packages/app/src/components/SecurityTab/SecurityTab.tsx index 3fc5a103f6..5f1e0a82e0 100644 --- a/packages/app/src/components/SecurityTab/SecurityTab.tsx +++ b/packages/app/src/components/SecurityTab/SecurityTab.tsx @@ -15,8 +15,8 @@ */ import React from 'react'; -import { Box } from '@material-ui/core'; import { EmbeddedScaffolderWorkflow } from '@backstage/plugin-scaffolder'; +import { Box } from '@material-ui/core'; const ReviewWrapper = () => { return ( @@ -43,11 +43,17 @@ export function SecurityTab(): JSX.Element | null { description={` ## This is markdown - overriding the template description - `} + `} onComplete={onComplete} onError={onError} namespace="default" templateName="docs-template" + initialFormState={{ + name: 'prefilled-name', + description: 'prefilled description', + owner: 'acme-corp', + repoUrl: 'github.com?owner=component&repo=component', + }} frontPage={ <>

Security Insights