We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
WizardProps
PropsWithChildren
1 parent 5806c8f commit 7a82401Copy full SHA for 7a82401
src/wizard.tsx
@@ -4,7 +4,7 @@ import * as logger from './logger';
4
import { Handler, WizardProps } from './types';
5
import WizardContext from './wizardContext';
6
7
-const Wizard: React.FC<WizardProps> = React.memo(
+const Wizard: React.FC<React.PropsWithChildren<WizardProps>> = React.memo(
8
({ header, footer, children, startIndex = 0 }) => {
9
const [activeStep, setActiveStep] = React.useState(startIndex);
10
const [isLoading, setIsLoading] = React.useState(false);
0 commit comments