Changeset df3a395 for client_app/src/components/register
- Timestamp:
- 01/13/21 17:24:58 (4 years ago)
- Branches:
- master
- Children:
- 580ba1a
- Parents:
- 7944fab
- Location:
- client_app/src/components/register
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
client_app/src/components/register/register_user_form.js
r7944fab rdf3a395 6 6 import UserRegister from "../../repository/register_repo"; 7 7 import {Component} from "react/cjs/react.production.min"; 8 import Login from "../login/login"; 8 9 9 10 class RegisterUser extends Component { … … 18 19 retainedSkills: [], 19 20 skillsToLearn: [], 20 error: props.error,21 success: props.success,21 error: null, 22 success: null, 22 23 sortedOptions:[] 23 24 } … … 58 59 error: null 59 60 }) 61 62 this.props.message(this.state.success); 60 63 }else{ 61 64 this.setState({ … … 73 76 74 77 render() { 75 console.log(this.state.success);76 77 78 if(this.state.success!=null){ 78 79 return( 79 <Redirect to={"/login"} success={this.state.success}/>80 <Redirect to={"/login"}/> 80 81 ); 81 82 } … … 106 107 107 108 componentDidMount(){ 109 this.props.message(null); 110 108 111 SkillFetch.fetchAll().then((data) =>{ 109 112 var sorted = [];
Note:
See TracChangeset
for help on using the changeset viewer.