source: client_app/src/components/data/profile.js@ 17abe5e

Last change on this file since 17abe5e was 17abe5e, checked in by i-ina <76742075+i-ina@…>, 3 years ago

react components for details and bugfix

  • Property mode set to 100644
File size: 409 bytes
Line 
1import React from 'react';
2import {useHistory} from 'react-router-dom';
3import {render} from "@testing-library/react";
4
5const Profile = (props) => {
6 const history = useHistory();
7 const userProfile = React.useState({
8 userProfile: props.userProfile
9 });
10
11 if(props.userProfile.email==null){
12 history.push("/");
13 }
14
15 return(
16 <h1>?</h1>
17 );
18}
19
20export default Profile;
Note: See TracBrowser for help on using the repository browser.