diff --git a/web/src/components/Login.tsx b/web/src/components/Login.tsx index d9640b8..9b63aa8 100644 --- a/web/src/components/Login.tsx +++ b/web/src/components/Login.tsx @@ -1,5 +1,6 @@ import React, { useState } from 'react'; import { useTradingAuth } from '../lib/tradingAuth'; +import { Button, Input } from './ui/Primitives'; export function Login() { const tradingAuth = useTradingAuth(); @@ -50,25 +51,25 @@ export function Login() {

-
- - setEmail(e.target.value)} - placeholder="trader@example.com" - required +
+ setEmail(e.target.value)} + placeholder="trader@example.com" + required />
- {!isResetPassword && ( -
- - setPassword(e.target.value)} - placeholder="••••••••" + {!isResetPassword && ( +
+ setPassword(e.target.value)} + placeholder="••••••••" required />
@@ -85,27 +86,27 @@ export function Login() { fontSize: '0.9rem' }}>{message}
} - +
{!isResetPassword && ( - - )} - - {!isSignUp && ( - - )} + + )} + + {!isSignUp && ( + + )}
diff --git a/web/src/components/ResetPassword.tsx b/web/src/components/ResetPassword.tsx index b01bea3..4c8f168 100644 --- a/web/src/components/ResetPassword.tsx +++ b/web/src/components/ResetPassword.tsx @@ -1,5 +1,6 @@ import { useState, useEffect } from 'react'; import { resetPlatformPassword } from '../lib/authSession'; +import { Button, Input } from './ui/Primitives'; export function ResetPassword() { const [password, setPassword] = useState(''); @@ -44,13 +45,13 @@ export function ResetPassword() {

Enter your new password below

-
- - setPassword(e.target.value)} - placeholder="New password" +
+ setPassword(e.target.value)} + placeholder="New password" required />
@@ -58,9 +59,9 @@ export function ResetPassword() { {error &&
{error}
} {message &&
{message}
} - +