Skip to content

Commit

Permalink
Added vercel.json and test creds button
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedant-20 committed May 3, 2024
1 parent 2de9e47 commit f72ca93
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/pages/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ function Login() {
});
};

const getTestCredentials = () => {
setData({
email: "gojo@example.com",
password: "Gojo@1234",
});
};

const handleSubmit = async (e) => {
e.preventDefault();

Expand Down Expand Up @@ -105,6 +112,13 @@ function Login() {
</button>
</form>

<button
onClick={getTestCredentials}
className="ml-24 mt-3 border-2 border-black bg-gradient-to-r from-teal-400 to-blue-500 hover:from-pink-500 hover:to-orange-500 text-white font-semibold px-4 py-2 rounded"
>
Get Test Credentials
</button>

<p className="my-5">
Don't have an account ?{" "}
<Link
Expand Down
5 changes: 5 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"rewrites": [
{"source":"/(.*)","destination":"/"}
]
}

0 comments on commit f72ca93

Please sign in to comment.