From 24a7461059a1fae3a60ebd719258b5ff56d4bec0 Mon Sep 17 00:00:00 2001
From: Mia Wang <yw21218@ic.ac.uk>
Date: Wed, 20 Apr 2022 17:17:47 +0100
Subject: [PATCH] try commit, cuz i had git problem

---
 src/App.js | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/src/App.js b/src/App.js
index a4c3c8a5..55eae035 100644
--- a/src/App.js
+++ b/src/App.js
@@ -1,4 +1,5 @@
 import Home from './pages/Home';
+import HomeOld from './pages/home_old'
 import './App.css';
 import React, { useState, useEffect } from "react";
 import axios from "axios";
@@ -7,19 +8,20 @@ import logo from './logo.svg';
 // import {BrowerRouter as Router, Route, Switch} from 'react-router-dom';
 
 function App() {
-  useEffect(() => {
-    fetch('/home', {
-      method: 'POST',
-      headers: { 'Content-Type': 'application/json' },
-      body: JSON.stringify({ })
-    })
-      .then((response) => response.text())
-      .then((data) => console.log(data));
-  }, []);
+  // useEffect(() => {
+  //   fetch('/home', {
+  //     method: 'POST',
+  //     headers: { 'Content-Type': 'application/json' },
+  //     body: JSON.stringify({ })
+  //   })
+  //     .then((response) => response.text())
+  //     .then((data) => console.log(data));
+  // }, []);
 
   return (
     <div>
-      <Home />
+      {/* <Home /> */}
+      <HomeOld />
     </div>
   );
 }
-- 
GitLab