diff options
author | Julia McCauley <skurvyj@gmail.com> | 2021-04-20 11:26:22 -0400 |
---|---|---|
committer | Julia McCauley <skurvyj@gmail.com> | 2021-04-20 11:26:22 -0400 |
commit | 8535db483bd2a153013976a0ad540d00707405ba (patch) | |
tree | 020b330523aeab9068b70717da4b917b8a769408 /react-frontend/src/components/EdgeInfo.js | |
parent | e47ab608709dd794f27dbfac9de950307a074e94 (diff) |
trying to implement on edge click, same trade pop up, not working yet tho
Diffstat (limited to 'react-frontend/src/components/EdgeInfo.js')
-rw-r--r-- | react-frontend/src/components/EdgeInfo.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/react-frontend/src/components/EdgeInfo.js b/react-frontend/src/components/EdgeInfo.js index e69de29..60af0e8 100644 --- a/react-frontend/src/components/EdgeInfo.js +++ b/react-frontend/src/components/EdgeInfo.js @@ -0,0 +1,31 @@ + +import '../css/UserCheckin.css'; + +/** + * Componenet for checkins. Has a toggle to show more info. + * @param {Object} props The props of the component. + * @returns {import('react').HtmlHTMLAttributes} A list element holding a checkin's info. + */ +function EdgeInfo(props) { + // State - toggled + + const stockList = props.stockList; + + /* const stockInfo = stockList.map((stock) => + <li>{stock}</li> + );*/ + + const hideSelf = () => { + props.setHideInfo(true); + } + + return ( + <div className='edge-info-wrapper'> + <p onClick={hideSelf}> X </p> + <div className = 'edge-info'> + {stockList} + </div> + </div>); +} + +export default EdgeInfo;
\ No newline at end of file |