mirror of
https://github.com/lemeow125/React-NotesApp.git
synced 2024-11-17 06:29:28 +08:00
Revert to connection to online backend to prepare for deployment
This commit is contained in:
parent
d0879f7eec
commit
9c512829cf
2 changed files with 1 additions and 4 deletions
|
@ -10,7 +10,7 @@ import {
|
||||||
// Note APIs
|
// Note APIs
|
||||||
|
|
||||||
const instance = axios.create({
|
const instance = axios.create({
|
||||||
baseURL: "http://localhost:8000",
|
baseURL: "https://keannu125.pythonanywhere.com",
|
||||||
});
|
});
|
||||||
|
|
||||||
export function GetNotes() {
|
export function GetNotes() {
|
||||||
|
|
|
@ -1,13 +1,10 @@
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import styles from "../../styles";
|
import styles from "../../styles";
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
import Note from "../Note/Note";
|
|
||||||
import { Button } from "@mui/material";
|
import { Button } from "@mui/material";
|
||||||
import { useQuery } from "react-query";
|
import { useQuery } from "react-query";
|
||||||
import { GetPublicNotes } from "../Api/Api";
|
import { GetPublicNotes } from "../Api/Api";
|
||||||
import { useSelector } from "react-redux";
|
|
||||||
import { NoteProps } from "../../Interfaces/Interfaces";
|
import { NoteProps } from "../../Interfaces/Interfaces";
|
||||||
import { RootState } from "../../Features/Redux/Store/Store";
|
|
||||||
import PublicNote from "../PublicNote/Note";
|
import PublicNote from "../PublicNote/Note";
|
||||||
|
|
||||||
export default function PublicNotes() {
|
export default function PublicNotes() {
|
||||||
|
|
Loading…
Reference in a new issue