Skip to content

Commit 7147668

Browse files
authored
fix: type error in SelectSchool within funnel.Render example from README.md (#61)
1 parent 6f10dff commit 7147668

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,16 @@ export function App() {
6363
);
6464
},
6565
})}
66-
SelectSchool={({ history }) => <SelectSchool onNext={(school) => history.push('EnterJoinDate', { school })} />}
66+
SelectSchool={({ history }) => (
67+
<SelectSchool
68+
onNext={(school) =>
69+
history.push('EnterJoinDate', (prev) => ({
70+
...prev,
71+
school
72+
}))
73+
}
74+
/>
75+
)}
6776
SelectEmployee={({ history }) => (
6877
<SelectEmployee
6978
onNext={(company) =>

0 commit comments

Comments
 (0)