From ab77019a4720841862fba488ed3475b0fca4c4c0 Mon Sep 17 00:00:00 2001 From: bytesparallel Date: Fri, 18 Mar 2022 15:46:22 -0500 Subject: [PATCH] saving work on completed registration function --- src/ApplicationViews.js | 5 ++++- src/auth/Register.js | 11 ++++++----- src/home/Home.js | 13 +++++++++++++ src/home/HomeManager.js | 8 ++++++++ src/images/MyImageManager.js | 8 ++++++++ src/profile/ProfileManager.js | 22 ++++++++++++++++++++++ src/tags/TagManager.js | 14 ++++++++++++++ 7 files changed, 75 insertions(+), 6 deletions(-) diff --git a/src/ApplicationViews.js b/src/ApplicationViews.js index be5aef0..958727f 100644 --- a/src/ApplicationViews.js +++ b/src/ApplicationViews.js @@ -1,4 +1,5 @@ import React from "react"; +import { Home } from "./home/Home"; import { Route } from "react-router-dom"; @@ -9,7 +10,9 @@ export const ApplicationViews = () => { <>
- + + +
) diff --git a/src/auth/Register.js b/src/auth/Register.js index cb773bf..66c6a6a 100644 --- a/src/auth/Register.js +++ b/src/auth/Register.js @@ -6,7 +6,7 @@ export const Register = () => { const firstName = useRef() const lastName = useRef() const username = useRef() - const bio = useRef() + const email = useRef() const password = useRef() const verifyPassword = useRef() const passwordDialog = useRef() @@ -18,6 +18,7 @@ export const Register = () => { if (password.current.value === verifyPassword.current.value) { const newUser = { "username": username.current.value, + "email": email.current.value, "first_name": firstName.current.value, "last_name": lastName.current.value, "password": password.current.value @@ -65,6 +66,10 @@ export const Register = () => { +
+ + +
@@ -73,10 +78,6 @@ export const Register = () => {
-
- -