mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-14 18:46:17 +00:00
eslint: enable react-hooks checks
Also fix all errors, which can lead to subtile bugs. Mostly fixings deps and refactoring to make typescript happy.
This commit is contained in:
committed by
David Lechner
parent
ee466ac904
commit
9d71bb4734
+2
-9
@@ -172,7 +172,7 @@ const Tour: React.VoidFunctionComponent = () => {
|
||||
disableBeacon: true,
|
||||
},
|
||||
],
|
||||
[selectedActivity, i18n],
|
||||
[selectedActivity],
|
||||
);
|
||||
|
||||
const styles = useMemo<Styles>(
|
||||
@@ -231,14 +231,7 @@ const Tour: React.VoidFunctionComponent = () => {
|
||||
setStepIndex(nextIndex);
|
||||
}
|
||||
},
|
||||
[
|
||||
dispatch,
|
||||
selectedActivity,
|
||||
setSelectedActivity,
|
||||
stepIndex,
|
||||
setStepIndex,
|
||||
steps,
|
||||
],
|
||||
[dispatch, setSelectedActivity, stepIndex, setStepIndex, steps],
|
||||
);
|
||||
|
||||
// automatically show the tour on the first run only
|
||||
|
||||
Reference in New Issue
Block a user