From 1627c1118ff425c1a500672666e192d26dce8bdd Mon Sep 17 00:00:00 2001 From: clarkohw Date: Tue, 20 Apr 2021 02:14:13 -0400 Subject: investor info display: --- react-frontend/src/components/InvestorInfo.js | 28 +++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'react-frontend/src/components') diff --git a/react-frontend/src/components/InvestorInfo.js b/react-frontend/src/components/InvestorInfo.js index 703c4c6..562b912 100644 --- a/react-frontend/src/components/InvestorInfo.js +++ b/react-frontend/src/components/InvestorInfo.js @@ -3,6 +3,7 @@ import { useEffect, useState } from "react"; // CSS import import "../css/UserCheckin.css"; +import "../css/InvesterInfo.css"; /** * Componenet for checkins. Has a toggle to show more info. @@ -20,7 +21,7 @@ function InvestorInfo(props) { end: toEpochMilli(props.dates.end), }); - if (props.name === "Mathews Krista Jean") { + if (props.name === "") { return; } @@ -54,11 +55,34 @@ function InvestorInfo(props) { );*/ + const stockTable = () => { + return ( +
+
+
Symbol
+
Realized gain
+
Unrealized gain
+
+
+ ); + }; + useEffect(() => getInfo(), [props.name, props.isSelected, props.personId]); return ( ); } -- cgit v1.2.3-70-g09d2