-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: passage de tous les fichiers jsx en tsx
- Loading branch information
Showing
5 changed files
with
68 additions
and
184 deletions.
There are no files selected for viewing
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
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,39 @@ | ||
import AppLayout from "../../components/Layout/AppLayout"; | ||
import BtnBackToHome from "../../components/Utils/BtnBackToHome"; | ||
import { defaultNavItems } from "../../config/navItems"; | ||
import functions from "../../functions"; | ||
import useUser from "../../hooks/useUser"; | ||
|
||
const Me = () => { | ||
const { user } = useUser(); | ||
|
||
return ( | ||
<AppLayout navItems={defaultNavItems} documentTitle="Mon compte"> | ||
<h1>Mon compte</h1> | ||
|
||
{user && ( | ||
<> | ||
<p> | ||
<strong>Prénom</strong> : {user.firstName} | ||
</p> | ||
<p> | ||
<strong>Nom</strong> : {user.lastName} | ||
</p> | ||
<p> | ||
<strong>Email</strong> : {user.email} | ||
</p> | ||
<p> | ||
<strong>{"Date d'inscription"}</strong> : {functions.date.format(user.accountCreationDate)} | ||
</p> | ||
<p> | ||
<strong>Identifiant technique</strong> : {user.id} | ||
</p> | ||
</> | ||
)} | ||
|
||
<BtnBackToHome /> | ||
</AppLayout> | ||
); | ||
}; | ||
|
||
export default Me; |
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