Skip to content

Commit 63353ef

Browse files
committed
Small cleanups
1 parent b7c1ae0 commit 63353ef

2 files changed

Lines changed: 16 additions & 18 deletions

File tree

README.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -263,22 +263,21 @@ import { StepUI } from "@octopusdeploy/step-api";
263263
import HelloWorldStepInputs from "./inputs";
264264

265265
export const HelloWorldStepUI: StepUI<HelloWorldStepInputs> = {
266-
createInitialInputs: () => {
267-
return {
268-
name: ""
269-
};
270-
},
271-
editInputsForm: (inputs, availableComponents) => {
272-
const { text } = availableComponents;
273-
return [
274-
text({
275-
input: inputs.name,
276-
label: "Greeting Name",
277-
helpText: `The name of the person to greet.`,
278-
}),
279-
280-
];
281-
},
266+
createInitialInputs: () => {
267+
return {
268+
name: ""
269+
};
270+
},
271+
editInputsForm: (inputs, { text }) => {
272+
return [
273+
text({
274+
input: inputs.name,
275+
label: "Greeting Name",
276+
helpText: `The name of the person to greet.`,
277+
}),
278+
279+
];
280+
},
282281
};
283282

284283
export default HelloWorldStepUI;

steps/hello-world/src/ui.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ export const HelloWorldStepUI: StepUI<HelloWorldStepInputs> = {
77
name: ""
88
};
99
},
10-
editInputsForm: (inputs, availableComponents) => {
11-
const { text } = availableComponents;
10+
editInputsForm: (inputs, { text }) => {
1211
return [
1312
text({
1413
input: inputs.name,

0 commit comments

Comments
 (0)