mirror of
https://github.com/lemeow125/React-NotesApp.git
synced 2024-11-17 06:29:28 +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
|
// Note APIs
|
||||||
|
|
||||||
const instance = axios.create({
|
const instance = axios.create({
|
||||||
baseURL: "https://keannu126.pythonanywhere.com",
|
baseURL: "http://localhost:8000",
|
||||||
});
|
});
|
||||||
|
|
||||||
export function GetNotes() {
|
export function GetNotes() {
|
||||||
|
|
|
@ -32,6 +32,7 @@ export default function Login() {
|
||||||
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
|
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
|
||||||
setUser({ ...user, username: e.target.value });
|
setUser({ ...user, username: e.target.value });
|
||||||
}}
|
}}
|
||||||
|
value={user.username}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div style={styles.flex_row}>
|
<div style={styles.flex_row}>
|
||||||
|
@ -43,6 +44,7 @@ export default function Login() {
|
||||||
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
|
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
|
||||||
setUser({ ...user, password: e.target.value });
|
setUser({ ...user, password: e.target.value });
|
||||||
}}
|
}}
|
||||||
|
value={user.password}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Button
|
<Button
|
||||||
|
|
Loading…
Reference in a new issue