Skip to content

Commit 9c5d4aa

Browse files
authored
Move Create Tenant to Thunk (#2043)
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
1 parent 04adf25 commit 9c5d4aa

File tree

16 files changed

+1252
-1106
lines changed

16 files changed

+1252
-1106
lines changed

portal-ui/src/screens/Console/Common/GenericWizard/WizardPage.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ const WizardPage = ({
103103
>
104104
<div className={classes.buttonInnerContainer}>
105105
{page.buttons.map((btn) => {
106+
if (btn.componentRender) {
107+
return btn.componentRender;
108+
}
106109
return (
107110
<Button
108111
id={"wizard-button-" + btn.label}

portal-ui/src/screens/Console/Common/GenericWizard/types.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
// along with this program. If not, see <http://www.gnu.org/licenses/>.
1616

1717
export interface IWizardButton {
18-
label: string;
19-
type: string;
18+
label?: string;
19+
type?: string;
2020
action?: (nextFunction: (to: string | number) => void) => void;
2121
enabled?: boolean;
2222
toPage?: number;
23+
componentRender?: React.ReactNode;
2324
}
2425

2526
export interface IWizardElement {

0 commit comments

Comments
 (0)