remove layouts from Stepper

Signed-off-by: Paul Cowan <paul.cowan@cutting.scot>
This commit is contained in:
Paul Cowan
2022-08-11 11:58:25 +01:00
committed by blam
parent 0bfc8a705e
commit 504920aad5
8 changed files with 2 additions and 110 deletions
-1
View File
@@ -226,7 +226,6 @@ const routes = (
</ScaffolderFieldExtensions>
<ScaffolderLayouts>
<CustomLayout />
<AnotherCustomlayout />
</ScaffolderLayouts>
</>
</Route>
@@ -21,7 +21,6 @@ import {
} from '@backstage/plugin-scaffolder';
const ALayout: ObjectFieldTemplate = ({ properties, description }) => {
// eslint-disable-next-line no-console
return (
<div>
<h1>CUSTOM LAYOUT!!!!!</h1>
@@ -35,34 +34,9 @@ const ALayout: ObjectFieldTemplate = ({ properties, description }) => {
);
};
const AnotherCustomLayout: ObjectFieldTemplate = ({
properties,
description,
}) => {
// eslint-disable-next-line no-console
return (
<div>
<h1>ANOTHER CUSTOM LAYOUT!!!!!</h1>
<div>
{properties.map(prop => (
<div key={prop.content.key}>{prop.content}</div>
))}
</div>
{description}
</div>
);
};
export const CustomLayout = scaffolderPlugin.provide(
createScaffolderLayout({
name: 'CustomLayout',
component: ALayout,
}),
);
export const AnotherCustomlayout = scaffolderPlugin.provide(
createScaffolderLayout({
name: 'AnotherCustomLayout',
component: AnotherCustomLayout,
}),
);
@@ -34,7 +34,6 @@ parameters:
allowedKinds:
- Group
- title: Choose a location
ui:ObjectFieldTemplate: 'AnotherCustomLayout'
required:
- repoUrl
properties: