Skip to content

Commit 4cb46fb

Browse files
authored
Merge pull request #115 from NuroDev/patch-1
Fix React 18 FunctionalComponent bug
2 parents 5806c8f + 7a82401 commit 4cb46fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wizard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as logger from './logger';
44
import { Handler, WizardProps } from './types';
55
import WizardContext from './wizardContext';
66

7-
const Wizard: React.FC<WizardProps> = React.memo(
7+
const Wizard: React.FC<React.PropsWithChildren<WizardProps>> = React.memo(
88
({ header, footer, children, startIndex = 0 }) => {
99
const [activeStep, setActiveStep] = React.useState(startIndex);
1010
const [isLoading, setIsLoading] = React.useState(false);

0 commit comments

Comments
 (0)