[BB-3594] Header Login button is aware of auth token
Created by: spokerman12
We're fulfilling the following user story:
"As a OCIM developer, I want to make the page be aware of logged in status of user so that I can help the user to go to console"
In the Congratulations page, the user is actually logged in, but the page header shows the Login button. Make it aware that the user is logged in and change the text to “go to console”.
JIRA tickets: BB-3594
Screenshots: See Jira ticket
Merge deadline: "None"
Testing instructions:
- Pull this branch to your local OCIM environment.
- Make the suggested change below on
src/registration/components/CongratulationsPage/CongratulationsPage.tsx
, line 37, and test logging in, out and changing the suggestedtrue
tofalse
:
{true && (
<RedirectToCorrectStep
currentPageStep={4}
currentRegistrationStep={this.props.currentRegistrationStep}
/>
)}
Then head to registration/congrats
.
Author notes and concerns:
- Currently, the user can only log out from inside the console, it should be possible to log out from outside the console, too. Maybe adding another NavLink below FAQ.
Reviewers