diff options
author | Michael Foiani <sotech117@michaels-mbp-3.lan> | 2021-04-20 01:01:02 -0400 |
---|---|---|
committer | Michael Foiani <sotech117@michaels-mbp-3.lan> | 2021-04-20 01:01:02 -0400 |
commit | d798737f0c5e00ef39b8695297f41d93922b3ad5 (patch) | |
tree | ccfda105d19060faaca09a5a342dcee3b465d74f /react-frontend/src/components/HubList.js | |
parent | 56532c3d09b162390602af0f94c78ade0d6181e2 (diff) |
Quick search feature and some restructuring.
Diffstat (limited to 'react-frontend/src/components/HubList.js')
-rw-r--r-- | react-frontend/src/components/HubList.js | 21 |
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 |