aboutsummaryrefslogtreecommitdiff
path: root/react-frontend/src/components/HubList.js
diff options
context:
space:
mode:
Diffstat (limited to 'react-frontend/src/components/HubList.js')
-rw-r--r--react-frontend/src/components/HubList.js28
1 files changed, 1 insertions, 27 deletions
diff --git a/react-frontend/src/components/HubList.js b/react-frontend/src/components/HubList.js
index 8aeb013..6d0b3e1 100644
--- a/react-frontend/src/components/HubList.js
+++ b/react-frontend/src/components/HubList.js
@@ -1,7 +1,6 @@
// React and component imports
import { useEffect, useState } from "react";
import Hub from "./Hub.js";
-import InvestorInfo from "./InvestorInfo.js";
// CSS import
import "../css/UserCheckin.css";
@@ -13,8 +12,6 @@ import "../css/UserCheckin.css";
*/
function HubList(props) {
const [hubItems, setHubItems] = useState([]);
- const [isSelected, setIsSelected] = useState(false);
- const [name, setName] = useState("");
/**
* Loads new the checkins into the current cache/map of hubs.
@@ -37,16 +34,6 @@ function HubList(props) {
setHubItems(hubs);
};
-
- const getName = () => {
- props.data.forEach((hub) => {
- if (hub.id === props.selected) {
- setName(hub.name);
- }
- });
- setName("");
- };
-
// React hook that updates when the hubs are recalculated
useEffect(() => updateHubItems(), [props.data]);
@@ -57,20 +44,7 @@ function HubList(props) {
console.log("DEVLOG");
}, [props.selected]);
- return (
- <div className="User-checkin">
- <div className="Checkins">
- <h2>Suspicion Ranks</h2>
- <ul className="Checkin-list">{hubItems}</ul>
- </div>
- <InvestorInfo
- personId={props.selected}
- isSelected={isSelected}
- name={name}
- dates={props.dates}
- ></InvestorInfo>
- </div>
- );
+ return <ul className='Checkin-list'>{hubItems}</ul>;
}
export default HubList;