-
-
Notifications
You must be signed in to change notification settings - Fork 136
1795 auth redirect logged out #1837
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
Closed
HuanFengYeh
wants to merge
13
commits into
codeforboston:main
from
HuanFengYeh:1795_auth_redirect_loggedout
Closed
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
8771031
email script update and create css file for the template
HuanFengYeh 2665a84
inline CSS into HTML
HuanFengYeh 7c620fc
Create email template
HuanFengYeh 323a1e3
Update the CSS
HuanFengYeh 0a60ffe
Update the emailTemplate
HuanFengYeh fd22471
update email template
HuanFengYeh 5611d13
Rewrite the clear logic
HuanFengYeh 0a4b12b
Trigger auth modal when nav to newsfeed page without auth
HuanFengYeh e7b042d
Add a protectedpageauth modal to AuthModal
HuanFengYeh da4189f
redirecting to home page on ProtectedPageAuthModal close
HuanFengYeh b1920a5
Close the modal if profile is found
HuanFengYeh c8a06cf
Merge main
HuanFengYeh 65be9ee
Upadte the main confliction
HuanFengYeh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
"prod": "digital-testimony-prod" | ||
}, | ||
"targets": {} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import type { ModalProps } from "react-bootstrap" | ||
import { Button, Col, Image, Modal, Stack } from "../bootstrap" | ||
import { useTranslation } from "next-i18next" | ||
|
||
export default function ProtectedPageAuthModal({ | ||
show, | ||
onHide, | ||
onSignInClick, | ||
onSignUpClick | ||
}: Pick<ModalProps, "show" | "onHide"> & { | ||
onSignInClick: () => void | ||
onSignUpClick: () => void | ||
}) { | ||
const { t } = useTranslation("auth") | ||
|
||
return ( | ||
<Modal show={show} onHide={onHide} aria-labelledby="start-modal" centered> | ||
<Modal.Header closeButton className={`py-4`}> | ||
<Modal.Title id="start-modal" className="visually-hidden"> | ||
{t("signUpOrIn")} | ||
</Modal.Title> | ||
</Modal.Header> | ||
<Modal.Body> | ||
<Col md={7} className="mx-auto"> | ||
<Stack gap={3} direction="vertical" className="mb-4 text-center"> | ||
<Image fluid src="/gov-with-mics.svg" alt="" /> | ||
|
||
<p className="h5">{t("loginForProtectedAccess")}</p> | ||
</Stack> | ||
|
||
<Stack gap={3}> | ||
<Button onClick={onSignUpClick}>{t("signUp")}</Button> | ||
<Button variant="outline-primary" onClick={onSignInClick}> | ||
{t("signIn")} | ||
</Button> | ||
</Stack> | ||
</Col> | ||
</Modal.Body> | ||
</Modal> | ||
) | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Remove console.logs