From 9c512829cf84f78bbfea9b13cb68b64fb9327aaf Mon Sep 17 00:00:00 2001 From: keannu125 Date: Wed, 29 Mar 2023 20:10:16 +0800 Subject: [PATCH] Revert to connection to online backend to prepare for deployment --- src/Components/Api/Api.tsx | 2 +- src/Components/PublicNotes/Notes.tsx | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Components/Api/Api.tsx b/src/Components/Api/Api.tsx index e5ec623..cb3e0b2 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: "http://localhost:8000", + baseURL: "https://keannu125.pythonanywhere.com", }); export function GetNotes() { diff --git a/src/Components/PublicNotes/Notes.tsx b/src/Components/PublicNotes/Notes.tsx index 6889c29..5f497f8 100644 --- a/src/Components/PublicNotes/Notes.tsx +++ b/src/Components/PublicNotes/Notes.tsx @@ -1,13 +1,10 @@ import * as React from "react"; import styles from "../../styles"; import { useNavigate } from "react-router-dom"; -import Note from "../Note/Note"; import { Button } from "@mui/material"; import { useQuery } from "react-query"; import { GetPublicNotes } from "../Api/Api"; -import { useSelector } from "react-redux"; import { NoteProps } from "../../Interfaces/Interfaces"; -import { RootState } from "../../Features/Redux/Store/Store"; import PublicNote from "../PublicNote/Note"; export default function PublicNotes() {