diff --git a/src/assets/style/variables.scss b/src/assets/style/variables.scss index fb2acab..3b9c65c 100644 --- a/src/assets/style/variables.scss +++ b/src/assets/style/variables.scss @@ -85,4 +85,10 @@ $border-stroke: .2em; } } } + + label{ + &.green{ + color: $green1; + } + } } \ No newline at end of file diff --git a/src/components/registration/post-registration.component.js b/src/components/registration/post-registration.component.js new file mode 100644 index 0000000..c057526 --- /dev/null +++ b/src/components/registration/post-registration.component.js @@ -0,0 +1,36 @@ +import React from 'react'; +import ZfgcForm from './../forms/ZfgcForm.component.js'; +import Collapsible from './../collapsible/collapsible.component.js'; +import Button from 'react-bootstrap/Button'; +import Form from 'react-bootstrap/Form'; +import {Link} from "react-router-dom"; +import { faCheckCircle } from "@fortawesome/free-solid-svg-icons"; +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' + +class PostRegistration extends React.Component { + componentDidMount(){ + + } + + render () { + return ( +
+ +
+
+
+ + + + + +
+
+
+
+
+ ) + } +} + +export default PostRegistration; \ No newline at end of file diff --git a/src/components/registration/registration.component.js b/src/components/registration/registration.component.js index 7b7db91..dd3a654 100644 --- a/src/components/registration/registration.component.js +++ b/src/components/registration/registration.component.js @@ -8,6 +8,7 @@ import LookupEndpoints from './../../utilities/axios/lookups.endpoints.js'; import jstz from 'jstz'; import ZfgcForm from './../forms/ZfgcForm.component.js'; import DatePicker from "react-datepicker"; +import { Redirect } from "react-router-dom"; class Registration extends ZfgcForm { @@ -37,7 +38,9 @@ class Registration extends ZfgcForm { } else{ UserEndpoints.registerNewUser(super.getState().vm).then((data) => { - console.log("user response"); + let state = super.getState(); + state.redirect = true; + super.setState(state); }); } }; @@ -46,6 +49,11 @@ class Registration extends ZfgcForm { return (
+ {super.getState() && super.getState().redirect ? + : + "" + } +
diff --git a/src/routing/new-user.route.js b/src/routing/new-user.route.js index 978ec19..d5cdd7a 100644 --- a/src/routing/new-user.route.js +++ b/src/routing/new-user.route.js @@ -1,6 +1,7 @@ import React from 'react'; import TosForm from './../components/registration/tos.component.js'; import Registration from './../components/registration/registration.component.js'; +import PostRegistration from './../components/registration/post-registration.component.js'; import { BrowserRouter as Router, Switch, @@ -20,6 +21,9 @@ function NewUserRoute() { + + +