remove layouts from Stepper
Signed-off-by: Paul Cowan <paul.cowan@cutting.scot>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user