-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
70 additions
and
37 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
VITE_API_BASE_URL=http://localhost:8000/api/ | ||
VITE_SERVICE_NAME=portal | ||
|
||
# Links external sites. | ||
VITE_LINK_OPEN_VERIFY_EMAIL_IN_GMAIL="https://mail.google.com/mail/#search/from%3Ano-reply%40info.codeforlife.education+subject%3AEmail+Verification" | ||
VITE_LINK_OPEN_VERIFY_EMAIL_IN_OUTLOOK=https://outlook.live.com/mail/ | ||
# Gmail. | ||
VITE_GMAIL_FILTERS_PASSWORD_RESET_REQUEST="from:[email protected] subject:Password reset request" | ||
VITE_GMAIL_FILTERS_EMAIL_VERIFICATION="from:[email protected] subject:Email verification" | ||
|
||
# Links to external sites. | ||
VITE_LINK_FEMALE_GRADUATES_IN_CS=https://www.wisecampaign.org.uk/core-stem-graduates-2019/ | ||
|
||
# TODO: determine which of these we need. | ||
|
This file contains 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,32 @@ | ||
import { MailOutline as MailOutlineIcon } from "@mui/icons-material" | ||
import { Stack } from "@mui/material" | ||
import { type FC } from "react" | ||
|
||
import { LinkButton } from "codeforlife/components/router" | ||
|
||
export interface OpenInEmailButtonsProps { | ||
gmailFilters: string | ||
} | ||
|
||
const OpenInEmailButtons: FC<OpenInEmailButtonsProps> = ({ gmailFilters }) => { | ||
return ( | ||
<Stack direction="row" spacing={5}> | ||
<LinkButton | ||
to={`https://mail.google.com/mail/#search/${encodeURIComponent(gmailFilters)}`} | ||
target="_blank" | ||
endIcon={<MailOutlineIcon />} | ||
> | ||
Open in Gmail | ||
</LinkButton> | ||
<LinkButton | ||
to="https://outlook.live.com/mail/" | ||
target="_blank" | ||
endIcon={<MailOutlineIcon />} | ||
> | ||
Open in Outlook | ||
</LinkButton> | ||
</Stack> | ||
) | ||
} | ||
|
||
export default OpenInEmailButtons |
This file contains 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 |
---|---|---|
@@ -1,5 +1,13 @@ | ||
import NewPasswordField, { | ||
type NewPasswordFieldProps, | ||
} from "./NewPasswordField" | ||
import OpenInEmailButtons, { | ||
type OpenInEmailButtonsProps, | ||
} from "./OpenInEmailButtons" | ||
|
||
export { NewPasswordField, type NewPasswordFieldProps } | ||
export { | ||
NewPasswordField, | ||
OpenInEmailButtons, | ||
type NewPasswordFieldProps, | ||
type OpenInEmailButtonsProps, | ||
} |
This file contains 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 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 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