From 9bd19b2bafe1debc9aef73f81278184cbf203943 Mon Sep 17 00:00:00 2001 From: keannu125 Date: Wed, 29 Mar 2023 18:59:35 +0800 Subject: [PATCH] Switch to local backend and polish login page --- src/Components/Api/Api.tsx | 2 +- src/Routes/Login/Login.tsx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Components/Api/Api.tsx b/src/Components/Api/Api.tsx index d93144c..e2aa672 100644 --- a/src/Components/Api/Api.tsx +++ b/src/Components/Api/Api.tsx @@ -10,7 +10,7 @@ import { // Note APIs const instance = axios.create({ - baseURL: "https://keannu126.pythonanywhere.com", + baseURL: "http://localhost:8000", }); export function GetNotes() { diff --git a/src/Routes/Login/Login.tsx b/src/Routes/Login/Login.tsx index 9b5bf95..98be5f3 100644 --- a/src/Routes/Login/Login.tsx +++ b/src/Routes/Login/Login.tsx @@ -32,6 +32,7 @@ export default function Login() { onChange={(e: React.ChangeEvent) => { setUser({ ...user, username: e.target.value }); }} + value={user.username} />
@@ -43,6 +44,7 @@ export default function Login() { onChange={(e: React.ChangeEvent) => { setUser({ ...user, password: e.target.value }); }} + value={user.password} />