Skip to content

Commit

Permalink
frontend: Include layout options in scaffolding template (#3161)
Browse files Browse the repository at this point in the history
  • Loading branch information
septum authored Nov 4, 2024
1 parent 14688fd commit f541446
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ const WelcomeStep: React.FC<WizardChild> = () => (
</WizardStep>
);

const HelloWorld: React.FC<WorkflowProps> = ({ heading }) => {
const HelloWorld: React.FC<WorkflowProps> = () => {
const dataLayout = {};
return (
<Wizard dataLayout={dataLayout} heading={heading}>
<Wizard dataLayout={dataLayout}>
<WelcomeStep name="Welcome" />
</Wizard>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ const register = (): WorkflowConfiguration => {
displayName: "{{ .Name }}",
description: "{{ .Description }}.",
component: HelloWorld,
layoutProps: {
{{- if .IsWizardTemplate}}
variant: "wizard",
{{- else}}
variant: "standard",
{{- end}}
},
},
},
};
Expand Down

0 comments on commit f541446

Please sign in to comment.