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

Adds login button to verify account page #255

Merged
merged 5 commits into from Feb 28, 2023
Merged

Conversation

daniellemaxwell
Copy link
Contributor

@daniellemaxwell daniellemaxwell commented Feb 27, 2023

Scope of changes

Adds a log in button to the header that should only appear on the verify-account page, after a user has completed the registration process.

Fixes SC-14239

Type of change

  • new feature
  • bug fix
  • documentation
  • testing
  • technical debt
  • other (describe)

Acceptance criteria

https://www.awesomescreenshot.com/video/15164591?key=b5ddc0cc7cfd878515285309d786fecc

Author checklist

  • I have manually tested the change and/or added automation in the form of unit tests or integration tests
  • I have updated the dependencies list
  • I have recompiled and included new protocol buffers to reflect changes I made
  • I have added new test fixtures as needed to support added tests
  • Check this box if a reviewer can merge this pull request after approval (leave it unchecked if you want to do it yourself)
  • I have moved the associated Shortcut story to "Ready for Review"

Reviewer(s) checklist

  • Any new user-facing content that has been added for this PR has been QA'ed to ensure correct grammar, spelling, and understandability.
  • Are there any TODOs in this PR that should be turned into stories?

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #14239: Add Login Button to Confirmation Page.


import Logo from '@/components/common/Logo';

function LandingHeader() {
const location = useLocation();
Copy link
Contributor

@masskoder masskoder Feb 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const location = useLocation();
const location = useLocation();
const isConfirmationPage = location.pathname === APP_PATH.VERIFY_PAGE

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

APP_PATH isn't listed in the paths file, so I added /verify-account to ROUTES.

return (
<nav className="border-b border-primary-800 py-8">
<div className="container mx-auto flex flex-wrap items-center justify-between">
<Logo />
<div className="space-x-8">
{login && (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{login && (
{isConfirmationPage && (

@daniellemaxwell daniellemaxwell merged commit f35a3c0 into main Feb 28, 2023
@daniellemaxwell daniellemaxwell deleted the sc-14239/login-button branch February 28, 2023 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants