diff --git a/app/pages/auth/register/page.js b/app/pages/auth/register/page.js index b561161..c8dc7eb 100644 --- a/app/pages/auth/register/page.js +++ b/app/pages/auth/register/page.js @@ -77,6 +77,26 @@ export default function registerPage() { } } + + const CheckedTextField = (title, textValue, textCallback) => { + + return ( + + textCallback(event.target.value)} + InputLabelProps={{ shrink: true }} + onKeyUp={(e)=>{if(e.key==="Enter") handleRegister()}} + /> + + ); + + } + return ( { - - return ( - - textCallback(event.target.value)} - InputLabelProps={{ shrink: true }} - /> - - ); - -} // async function checkUserExists(email, debug) { diff --git a/app/pages/auth/signIn/page.js b/app/pages/auth/signIn/page.js index 4bfeec6..4137e5b 100644 --- a/app/pages/auth/signIn/page.js +++ b/app/pages/auth/signIn/page.js @@ -86,6 +86,7 @@ export default function SignInPage() { error={error} onChange={(event) => setEmail(event.target.value)} InputLabelProps={{ shrink: true }} + onKeyUp={(e) => {if(e.key==="Enter") handleLogin()}} />