-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
Milestone
Description
Can we improve the onClickNext(), onClickPrevious() methods?
Suggestions:
- Generalise the
skipToIndexlogic so that it can be used by both methods - Can we make the distinction clearer between?
interfaceRefInstance.clickPrevious(),promptBackward(), andthis.props.changeStage(`${this.props.pathPrefix}/${skipToIndex}`); - Can we update the logic to remove the nested if/else?
- Can we remove
interfaceRefInstance? If not, can we make the distinction clearer between clickPrevious and promptBackward?