Skip to content

Commit

Permalink
feat: add user email to profile on user side
Browse files Browse the repository at this point in the history
  • Loading branch information
thenicekat committed Apr 1, 2024
1 parent 6a88341 commit c3c38bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/app/user/profile/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ export default function UserProfile() {
control={control}
>
<div className="flex justify-around m-2">
<img
src={`https://api.dicebear.com/7.x/notionists/svg?seed=${userData?.email}&size=50&radius=0`}
className='rounded-full border-2 w-32 h-32 border-green-500 mx-auto'
alt="avatar"
/>
<Chip color="success" size="lg" className="mx-auto place-content-center">Karma Points: {userData?.karmaPoints}</Chip>
<Switch size="lg" className="mx-auto place-content-center" isSelected={userIsPublic} onValueChange={() => {
setUserIsPublic(!userIsPublic)
Expand Down

0 comments on commit c3c38bd

Please sign in to comment.