Skip to content
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

GH-2285/bugfix/do-not-sign-out-from-onboarding-on-ghosty-navigation #702

Merged
Changes from all commits
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Do not sign out user who clicks on onboarding Step 1 Ghosty

  • Loading branch information
wlycdgr committed Mar 30, 2021
commit 7f582829c7f59df4e9cbc250c9dd1fdf286035be
@@ -61,12 +61,6 @@ const StepProgressBar = (props) => {
step4: currentStepNumber === 4
});

const logoutIfStepOne = (stepId) => {
const { actions } = props;
const { logout } = actions;
if (stepId === LOGIN) logout();
};

const renderStep = (step, isCurrent, stepClass) => {
const labelClasses = ClassNames('StepProgressBar__label', {
current: isCurrent,
@@ -86,7 +80,7 @@ const StepProgressBar = (props) => {

return (
<div className="StepProgressBar__column">
<NavLink to={step.route} onClick={() => logoutIfStepOne(step.id)}>
<NavLink to={step.route}>
<div className={labelClasses}>{step.label}</div>
<div className={stepClasses} />
</NavLink>
ProTip! Use n and p to navigate between commits in a pull request.