Finished React components for new Stock Market UI

This commit is contained in:
danielyxie
2019-04-23 01:23:08 -07:00
committed by danielyxie
parent 6b3646e981
commit 4809a21e38
21 changed files with 1173 additions and 207 deletions
@@ -0,0 +1,11 @@
import { StockSymbols } from "./StockSymbols";
export const TickerHeaderFormatData = {
longestName: 0,
longestSymbol: 0,
}
for (const key in StockSymbols) {
TickerHeaderFormatData.longestName = Math.max(key.length, TickerHeaderFormatData.longestName);
TickerHeaderFormatData.longestSymbol = Math.max(StockSymbols[key].length, TickerHeaderFormatData.longestSymbol);
}