Skip to content

Commit 124fdb9

Browse files
committed
fix: nextjs example
1 parent e461b6f commit 124fdb9

File tree

3 files changed

+505
-584
lines changed

3 files changed

+505
-584
lines changed

examples/nextjs/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"start": "next start"
99
},
1010
"dependencies": {
11-
"next": "10.0.7",
12-
"react": "17.0.1",
13-
"react-dom": "17.0.1",
14-
"react-use-wizard": "^1.0.1"
11+
"next": "11.0.1",
12+
"react": "17.0.2",
13+
"react-dom": "17.0.2",
14+
"react-use-wizard": "^1.1.2"
1515
}
1616
}

examples/nextjs/pages/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,13 @@ const Footer = () => {
3333
</p>
3434
</div>
3535
<div>
36-
<button onClick={previousStep} disabled={isLoading || isFirstStep}>
36+
<button
37+
onClick={() => previousStep()}
38+
disabled={isLoading || isFirstStep}
39+
>
3740
Previous
3841
</button>
39-
<button onClick={nextStep} disabled={isLoading || isLastStep}>
42+
<button onClick={() => nextStep()} disabled={isLoading || isLastStep}>
4043
Next
4144
</button>
4245
</div>

0 commit comments

Comments
 (0)