-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement delegates onboarding - Closes #1960 #2045
Implement delegates onboarding - Closes #1960 #2045
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one detail below. Everything else looks great 👍
src/components/votingV2/votingV2.js
Outdated
handleCloseOnboarding() { | ||
localStorage.setItem('closedVotingOnboarding', true); | ||
this.setState({ showVotingOnboarding: false }); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
handleCloseOnboarding
and state.showOnboarding
should IMO be inside the generic <Onboarding />
component. You just need to pass key='showVotingOnboarding'
to use as the localStorage
key.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect. 💯
What issue have I solved?
#1960
How have I implemented/fixed it?
Created onboarding component, that renders the slides based on the props, and has the navigation with animations on it, also receive the final
callBack
and theonClose
from props.Updated votingV2 so it renders the Onboarding if the user hadn't closed it before.
How has this been tested?
Go to
/delegatesV2
and the onboarding should show up.Review checklist