-
-
-
- Access Your Nisa Invest Account
-
-
- Please enter your credentials below to log in
-
+ return (
+
+
+
+
+ Access Your Nisa Invest Account
+
+
+ Please enter your credentials below to log in
+
+
+
+
+ I don't have an account yet.{' '}
+
+
+
-
-
- I don't have an account yet.{' '}
-
-
-
-
- );
+ );
}
-export default Login;
\ No newline at end of file
+export default Login;
diff --git a/src/pages/SignUp/SignUp.tsx b/src/pages/SignUp/SignUp.tsx
index 3e85561..fab6c3f 100644
--- a/src/pages/SignUp/SignUp.tsx
+++ b/src/pages/SignUp/SignUp.tsx
@@ -5,68 +5,72 @@ import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
function SignUp() {
- const [email, setEmail] = useState('');
- const [password, setPassword] = useState('');
- const [error, setError] = useState('');
- const navigate = useNavigate();
+ const [email, setEmail] = useState('');
+ const [password, setPassword] = useState('');
+ const [error, setError] = useState('');
+ const navigate = useNavigate();
- const handleSubmit = async (e: React.FormEvent) => {
- e.preventDefault();
- setError('');
- try {
- await signUp(email, password);
- // Redirect to login page or dashboard after successful sign-up
- navigate('/login');
- } catch (err) {
- setError('Sign-up failed. Please try again.');
- console.error('Sign-up error:', err);
- }
- };
+ const handleSubmit = async (e: React.FormEvent) => {
+ e.preventDefault();
+ setError('');
+ try {
+ await signUp(email, password);
+ // Redirect to login page or dashboard after successful sign-up
+ navigate('/login');
+ } catch (err) {
+ setError('Sign-up failed. Please try again.');
+ console.error('Sign-up error:', err);
+ }
+ };
- return (
-
-
-
-
- Thanks for your interest in Nisa Invest
-
-
- Please fill out the details below to create an account
-
+ return (
+
+
+
+
+ Thanks for your interest in Nisa Invest
+
+
+ Please fill out the details below to create an account
+
+
+
+
+ I already have an account.{' '}
+
+
+
-
-
- I already have an account.{' '}
-
-
-
-
- );
+ );
}
-export default SignUp;
\ No newline at end of file
+export default SignUp;