Skip to content

Commit a2040de

Browse files
author
Shawn Gustaw
committed
fix(types): update types for currentStep in Wizard
1 parent 77cbe2d commit a2040de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-form-renderer/src/wizard-context/wizard-context.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import React from 'react';
2+
import { Field } from '../common-types';
23
import { FormOptions } from '../renderer-context';
34

45
export interface WizardContextValue {
56
formOptions: FormOptions;
67
crossroads: string[];
7-
currentStep: string;
8+
currentStep: { fields: Field[]; name: string; title: string; nextStep?: string };
89
handlePrev: Function;
910
onKeyDown: Function;
1011
jumpToStep: Function;

0 commit comments

Comments
 (0)