Skip to content

Commit

Permalink
Display email on /profile
Browse files Browse the repository at this point in the history
This commit uses the UserAuth hook to aggregate the user's email and displays it in /profile
  • Loading branch information
Bryan Mointalvan committed Mar 28, 2023
1 parent 967de42 commit a662363
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pages/Profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ import {
Button,
useColorModeValue,
} from '@chakra-ui/react';
import { UserAuth } from "../context/AuthContext";


export default function Explore() {

const { user } = UserAuth();

return (
<div>
<Background />
Expand Down Expand Up @@ -60,7 +65,7 @@ export default function Explore() {
</ListItem>
<ListItem>

Email: display here
Email: {user.email}
<Button>Edit</Button>
</ListItem>
</List>
Expand Down

0 comments on commit a662363

Please sign in to comment.