Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions frontend/src/Pages/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ const Login = () => {
console.log('wrong Credentials');
}
};

const populateForm = () => {
const email = '[email protected]';
const password = 'jayjayjay';
setEmail(email);
setPassword(password);
};

return (
<div className=" h-[100vh] sm:mx-auto flex-col flex items-center justify-center rounded-lg bg-slate-200 mx-1">
<div className="h-10 mb-10">
Expand Down Expand Up @@ -75,6 +83,14 @@ const Login = () => {
value={password}
setValue={setPassword}
/>

<span
className="text-white border-2 border-secondary-3 text-center py-2 rounded-xl font-semibold"
onClick={populateForm}
>
Sign in as a Test User
</span>

<Button
btnName={isSubmitting ? 'Logging in' : 'Login'}
type="submit"
Expand Down