mirror of
https://github.com/lemeow125/React-NotesApp.git
synced 2024-11-16 22:19:27 +08:00
Switch to local backend and polish login page
This commit is contained in:
parent
37d67ced7d
commit
9bd19b2baf
2 changed files with 3 additions and 1 deletions
|
@ -10,7 +10,7 @@ import {
|
|||
// Note APIs
|
||||
|
||||
const instance = axios.create({
|
||||
baseURL: "https://keannu126.pythonanywhere.com",
|
||||
baseURL: "http://localhost:8000",
|
||||
});
|
||||
|
||||
export function GetNotes() {
|
||||
|
|
|
@ -32,6 +32,7 @@ export default function Login() {
|
|||
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
setUser({ ...user, username: e.target.value });
|
||||
}}
|
||||
value={user.username}
|
||||
/>
|
||||
</div>
|
||||
<div style={styles.flex_row}>
|
||||
|
@ -43,6 +44,7 @@ export default function Login() {
|
|||
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
setUser({ ...user, password: e.target.value });
|
||||
}}
|
||||
value={user.password}
|
||||
/>
|
||||
</div>
|
||||
<Button
|
||||
|
|
Loading…
Reference in a new issue