diff --git a/src/components/App.js b/src/components/App.js index f18c6aa..9e8e46c 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -37,14 +37,17 @@ class App extends Component { )} /> ( - + )} /> ( - + )} /> ( )} /> + ( + + )} /> diff --git a/src/components/root/Navigation.js b/src/components/root/Navigation.js index 8180d9f..b2f3fc2 100644 --- a/src/components/root/Navigation.js +++ b/src/components/root/Navigation.js @@ -1,5 +1,5 @@ import React, { Component } from "react"; -import { Link } from "react-router-dom"; +import { Link as a } from "react-router-dom"; import InLineSearch from "./common/Functionality/InlineSearchBar"; // Navbar class component, Just simple href's to retain styling @@ -12,24 +12,24 @@ export class Navigation extends Component {
{/* Inline UUID search bar is here */} diff --git a/src/components/root/Pages/Cards.js b/src/components/root/Pages/Cards.js index 6ebbb79..042f49e 100644 --- a/src/components/root/Pages/Cards.js +++ b/src/components/root/Pages/Cards.js @@ -5,11 +5,14 @@ import React, { Component } from "react"; // is referenced on Home class Cards extends Component { + upcomingMig() { + return this.props.migs["upcoming_count"]; + } bookedMig() { - return this.props.migs["booked_count"]; + return this.props.migs["booked_count"] } waitingMig() { - return this.props.migs["awaitterm_count"]; + return this.props.migs["pendterm_count"]; } completedMig() { return this.props.migs["complete_count"]; @@ -25,6 +28,17 @@ class Cards extends Component { return (
+
+
+
+ + {this.upcomingMig()} +
+
+ upcoming +
+
+
@@ -32,31 +46,7 @@ class Cards extends Component { {this.bookedMig()}
- booked -
-
-
-
-
-
- -

- {this.waitingMig()} -
-
- waiting -
-
-
- -
-
-
- - {this.completedMig()} -
-
@@ -71,6 +61,18 @@ class Cards extends Component {
+
+
+
+ +

+ {this.waitingMig()} +
+ +
+
); } diff --git a/src/components/root/common/Tables/CompTable.js b/src/components/root/common/Tables/CompTable.js index eb68e51..dd9ff20 100644 --- a/src/components/root/common/Tables/CompTable.js +++ b/src/components/root/common/Tables/CompTable.js @@ -14,7 +14,7 @@ import ToolkitProvider, { const CompTable = (props) => { const [list, setList] = useState([]); const [loading, setLoading] = useState(false); - const [ticURl, setURL] = useState(null) + const { SearchBar } = Search; const { ExportCSVButton } = CSVExport; const sizePerPageRenderer = ({ @@ -89,10 +89,15 @@ const CompTable = (props) => { formatter: (cell, row) => ( @@ -115,7 +120,6 @@ const CompTable = (props) => { { dataField: "migration_type", text: "Type", sort: true }, { dataField: "original_server", text: "Original Server", sort: true }, { dataField: "new_server", text: "New Server", sort: true }, - { dataField: "migration_status", text: "Status", sort: true }, // { dataField: "term_date", text: "Termination Date", sort: true }, { dataField: "notes", text: "Notes", sort: true }, // { dataField: "submit_time", text: "Submit Time", sort: true },