diff --git a/website3.0/components/Login-Signup.js b/website3.0/components/Login-Signup.js
index 8ec7007f..b90abf5c 100644
--- a/website3.0/components/Login-Signup.js
+++ b/website3.0/components/Login-Signup.js
@@ -22,7 +22,9 @@ export const Login = ({ onClose, onSignupClick }) => {
New here? Sign up now
-
+
);
};
@@ -106,7 +108,9 @@ export const Signup = ({ onClose, onLoginClick }) => {
/>
Already have an account? Login
-
+
);
};
\ No newline at end of file
diff --git a/website3.0/pages/OTP.js b/website3.0/pages/OTP.js
index 261f693e..05acda70 100644
--- a/website3.0/pages/OTP.js
+++ b/website3.0/pages/OTP.js
@@ -40,6 +40,10 @@ const OTP = ({ onClose, onOTPSubmit, onBack }) => {
+ {/* Close button */}
+
This helps us keep your account secure.
{/* OTP input fields */} diff --git a/website3.0/pages/Profile.js b/website3.0/pages/Profile.js index 49c205b6..97129bbc 100644 --- a/website3.0/pages/Profile.js +++ b/website3.0/pages/Profile.js @@ -3,7 +3,6 @@ import React, { useState } from 'react'; import "@stylesheets/profile.css" const Profile = ({ onClose }) => { - // State for form fields const [username, setUsername] = useState(''); const [password, setPassword] = useState(''); const [confirmPassword, setConfirmPassword] = useState(''); @@ -11,13 +10,12 @@ const Profile = ({ onClose }) => { // Handle form submission const handleSubmit = async (e) => { e.preventDefault(); - // TODO: Add account creation logic here - await fetch('/api/createaccount',{ - method:'POST', - body:JSON.stringify({ - email:localStorage.getItem('email'), - name:username, - password:password + await fetch('/api/createaccount', { + method: 'POST', + body: JSON.stringify({ + email: localStorage.getItem('email'), + name: username, + password: password }) }) onClose(); @@ -25,6 +23,10 @@ const Profile = ({ onClose }) => { return (