-
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Showing the real mail address on email confirmation view (#445)
* fix: Showing the real mail address on email confirmation view * chore: remove the unused hook
- Loading branch information
Showing
8 changed files
with
165 additions
and
23 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
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ import AuthInsider from './AuthInsider'; | |
import { AuthInsiderCard } from './_components'; | ||
import styles from './RegisterVerify.module.scss'; | ||
import { AppToaster, Stack } from '@/components'; | ||
import { useAuthActions } from '@/hooks/state'; | ||
import { useAuthActions, useAuthUserVerifyEmail } from '@/hooks/state'; | ||
import { useAuthSignUpVerifyResendMail } from '@/hooks/query'; | ||
import { AuthContainer } from './AuthContainer'; | ||
|
||
|
@@ -13,6 +13,8 @@ export default function RegisterVerify() { | |
const { mutateAsync: resendSignUpVerifyMail, isLoading } = | ||
useAuthSignUpVerifyResendMail(); | ||
|
||
const emailAddress = useAuthUserVerifyEmail(); | ||
|
||
const handleResendMailBtnClick = () => { | ||
resendSignUpVerifyMail() | ||
.then(() => { | ||
|
@@ -38,8 +40,8 @@ export default function RegisterVerify() { | |
<AuthInsiderCard className={styles.root}> | ||
<h2 className={styles.title}>Please verify your email</h2> | ||
<p className={styles.description}> | ||
We sent an email to <strong>[email protected]</strong> Click the | ||
link inside to get started. | ||
We sent an email to <strong>{emailAddress}</strong> Click the link | ||
inside to get started. | ||
</p> | ||
|
||
<Stack spacing={4}> | ||
|
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
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