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.js21
1 files changed, 1 insertions, 20 deletions
diff --git a/react-frontend/src/components/HubList.js b/react-frontend/src/components/HubList.js
index c9a5156..fe47457 100644
--- a/react-frontend/src/components/HubList.js
+++ b/react-frontend/src/components/HubList.js
@@ -13,8 +13,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.
@@ -30,15 +28,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]);
@@ -49,15 +38,7 @@ function HubList(props) {
getName();
}, [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; \ No newline at end of file