Last change
on this file since 17abe5e was 17abe5e, checked in by i-ina <76742075+i-ina@…>, 4 years ago |
react components for details and bugfix
|
-
Property mode
set to
100644
|
File size:
409 bytes
|
Line | |
---|
1 | import React from 'react';
|
---|
2 | import {useHistory} from 'react-router-dom';
|
---|
3 | import {render} from "@testing-library/react";
|
---|
4 |
|
---|
5 | const 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 |
|
---|
20 | export default Profile; |
---|
Note:
See
TracBrowser
for help on using the repository browser.