From a7f1433da5ddf11845251a062da96bc42c631f50 Mon Sep 17 00:00:00 2001 From: Michael Foiani Date: Fri, 16 Apr 2021 19:18:00 -0400 Subject: Deleted template for frontend. --- frontend/src/components/SECAPIData.js | 43 ----------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 frontend/src/components/SECAPIData.js (limited to 'frontend/src/components/SECAPIData.js') diff --git a/frontend/src/components/SECAPIData.js b/frontend/src/components/SECAPIData.js deleted file mode 100644 index b0ad82d..0000000 --- a/frontend/src/components/SECAPIData.js +++ /dev/null @@ -1,43 +0,0 @@ -import React, {useState, useEffect} from 'react'; -import Button from './Button'; -import HubList from './HubList'; -import HubMap from './HubList'; -import './App.css'; -import Banner from './Banner'; - - - -function SECAPIData() { - const [displayData, setDisplayData] = useState({}); - - const sendToBackend = () => { - console.log(dataToBackend); - - fetch("http://localhost:4567/data", { - method: "POST", - body: JSON.stringify({ - "data" : dataToBackend - }), - headers: { - "Content-Type": "application/json", - }, - credentials: "same-origin" - }) - - .then(response => response.json().then(data => setDisplayData(data))) - .catch(error => console.log(error)); - } - - useEffect(() => sendToBackend(), []); - - return ( -
- - - -
- ); -} - -export default SECAPIData; - \ No newline at end of file -- cgit v1.2.3-70-g09d2