profil mit bild

This commit is contained in:
Peter Hoppe
2023-01-04 16:23:43 +01:00
parent 8a42c3a506
commit 50c129bf5a
2 changed files with 26 additions and 1 deletions

View File

@ -1,5 +1,7 @@
import React, { useContext, useState } from 'react'
import { Link } from 'react-router-dom';
import { Axios, ResponseT, UserCtx, UserCtxT } from '../context/UserContext';
import Img from './Img';
import './Profil.css';
function Profil()
@ -68,6 +70,10 @@ function Profil()
return (
<div className='Profil'>
<h2>Profil</h2>
<div>
{dog.data && <Img pth={dog.data.picture}/>}
<Link to={'/upload'}>Bild ändern</Link>
</div>
<form onSubmit={submitForm}>
<div className='neben'>
<label htmlFor="email">Email: </label>