@@ -30,6 +30,7 @@ const ProfilePage: NextPage = () => {
3030 const [ username , setUsername ] = useState ( "" ) ;
3131 const [ bio , setBio ] = useState ( "" ) ;
3232 const [ profilePicture , setProfilePicture ] = useState < string > ( "" ) ;
33+ const [ email , setEmail ] = useState < string > ( "" ) ;
3334 const [ isEditing , setIsEditing ] = useState ( false ) ; // New state for edit mode
3435 const [ articles , setArticles ] = useState < Post [ ] > ( [ ] ) ;
3536 const [ loading , setLoading ] = useState ( true ) ;
@@ -89,7 +90,7 @@ const ProfilePage: NextPage = () => {
8990
9091 await punkProfileWriteAsync ( {
9192 functionName : "setProfile" ,
92- args : [ username , bio , profilePicture ] ,
93+ args : [ username , bio , profilePicture , email ] ,
9394 } ) ;
9495
9596 notification . success ( "Profile Edited Successfully" ) ;
@@ -253,6 +254,7 @@ const ProfilePage: NextPage = () => {
253254 < div className = "flex-grow text-center md:mx-auto mt-4 md:mt-0" >
254255 < >
255256 < InputBase placeholder = "Your Bio" value = { bio } onChange = { setBio } />
257+ < InputBase placeholder = "Your Email" value = { email } onChange = { setEmail } />
256258 </ >
257259 </ div >
258260 ) : (
0 commit comments