generated from ita-social-projects/DevTemplate
-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
cf05e00
commit 63c8adc
Showing
9 changed files
with
118 additions
and
112 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 |
---|---|---|
|
@@ -15,4 +15,4 @@ a { | |
display: flex; | ||
scroll-behavior: smooth; | ||
font-family: 'Inter', sans-serif; | ||
} | ||
} |
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
70 changes: 0 additions & 70 deletions
70
FrontEnd/src/pages/SignUp/SignUp/ActivateProfileModalPage.jsx
This file was deleted.
Oops, something went wrong.
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,57 @@ | ||
import { useState, useEffect } from 'react'; | ||
import axios from 'axios'; | ||
import { useParams, Link } from 'react-router-dom'; | ||
import styles from './ActivateProfilePage.module.css'; | ||
|
||
export function ActivateProfilePage() { | ||
const { uid, token } = useParams(); | ||
const [activationStatus, setActivationStatus] = useState(''); | ||
|
||
const handleActivation = async () => { | ||
try { | ||
const response = await axios.post( | ||
`${process.env.REACT_APP_BASE_API_URL}/api/auth/users/activation/`, | ||
{ | ||
uid: uid, | ||
token: token, | ||
} | ||
); | ||
|
||
setActivationStatus(response.data.message); | ||
} catch (error) { | ||
setActivationStatus('Помилка активації'); | ||
} | ||
}; | ||
|
||
useEffect(() => { | ||
handleActivation(); | ||
}, []); | ||
|
||
return ( | ||
<div className={styles['activation-page']}> | ||
<div className={styles['activation-page__body']}> | ||
<div className={styles['activation-page__container']}> | ||
<div className={styles['activation-page__header']}> | ||
{activationStatus === 'Помилка активації' | ||
? 'Помилка активації' | ||
: 'Реєстрація завершена!'} | ||
</div> | ||
<div className={styles['activation-page__content']}> | ||
<p className={styles['activation-page__text']}> | ||
{activationStatus === 'Помилка активації' | ||
? 'Під час активації сталася помилка. Спробуйте ще раз або зв\'яжіться з підтримкою.' | ||
: 'Ви успішно підтвердили вказану електронну адресу.'} | ||
</p> | ||
</div> | ||
<div className={styles['activation-page__footer']}> | ||
<div className={styles['button-container']}> | ||
<Link className={styles['signup-page__button']} to="/login"> | ||
Повернутися до входу | ||
</Link> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ export function SignUpCompletionPage() { | |
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
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