diff --git a/src/components/root/Home.js b/src/components/root/Home.js index 1b6a4af..e243809 100644 --- a/src/components/root/Home.js +++ b/src/components/root/Home.js @@ -2,7 +2,6 @@ import React, { Component } from "react"; import { callAPI } from "../actions/API"; import Cards from "./Pages/Cards"; -import SideMigrations from "./common/Migrations/SideMigrations"; import GenericList from "../root/Pages/GenericList"; // Homepage/Cards, first API call here to pass down to cards @@ -53,7 +52,6 @@ export class Home extends Component {
- {/* */}
@@ -63,7 +61,4 @@ export class Home extends Component { } } -export default Home; - -// Broken -// +export default Home; \ No newline at end of file diff --git a/src/components/root/common/Migrations/SideMigrations.js b/src/components/root/common/Migrations/SideMigrations.js deleted file mode 100644 index 8e17e6a..0000000 --- a/src/components/root/common/Migrations/SideMigrations.js +++ /dev/null @@ -1,32 +0,0 @@ -import React, { Component } from "react"; -import { SingleSide } from "../Tables/SingleSide"; -import { callAPI } from "../../../actions/API"; - -// Side Migrations is displayed on the Home page, -// This page contains the API request, and storing state for the request, - -export default class SideMigrations extends Component { - constructor(props) { - super(props); - this.state = { - migs: [], - }; - } - componentDidMount() { - callAPI - .get("/pending/") - .then((request) => { - this.setState({ - migs: request.data, - }); - }) - .catch((error) => { - this.setState({ - error: true, - }); - }); - } - render() { - return ; - } -} diff --git a/src/components/root/common/Tables/SingleSide.js b/src/components/root/common/Tables/SingleSide.js deleted file mode 100644 index 47b1f02..0000000 --- a/src/components/root/common/Tables/SingleSide.js +++ /dev/null @@ -1,28 +0,0 @@ -import React from "react"; -import { BootstrapTable, TableHeaderColumn } from "react-bootstrap-table"; -import "../../../../react-bootstrap-table.css"; - -// Single Side is directly referenced on the SideMigrations page, -// receives data from the get request and only displays small amounts of info -// this could be fleshed out/ linked to UUID's - -export const SingleSide = ({ data }) => { - return ( -
- - - Domain - - - Booked Time - - - Status - - -
- ); - // -}; -{ -}