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} />