From 2bc0555caa595967a28593aec2abd52500c5ddf9 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sun, 27 Apr 2025 20:44:14 -0600 Subject: switch markets for market data --- client/src/App.js | 71 ++++++++++++++++----- client/src/MarketDataPage.jsx | 141 ++++++++++++++++++++++++------------------ 2 files changed, 137 insertions(+), 75 deletions(-) (limited to 'client/src') diff --git a/client/src/App.js b/client/src/App.js index 4e08a17..a83b628 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -1,10 +1,9 @@ -import React from 'react'; +import React, { useState, createContext } from 'react'; import { Routes, Route, Navigate, Link} from 'react-router-dom'; import MarketDataPage from './MarketDataPage'; import BidsPage from './BidsPage'; import SubmitBidPage from './SubmitBidPage'; -import { Menu } from '@arco-design/web-react'; -import { PageHeader, Typography } from '@arco-design/web-react'; +import { Menu, Select, PageHeader, Typography } from '@arco-design/web-react'; import '@arco-design/web-react/dist/css/arco.css'; const ghostBgStyle = { @@ -13,13 +12,29 @@ const ghostBgStyle = { padding: 20, }; +export const MarketContext = createContext(); +export const MARKET_FULL_NAMES = { + CAISO: 'California ISO', + ERCOT: 'Electric Reliability Council of Texas', + ISONE: 'ISO New England', + MISO: 'Midcontinent ISO', + NYISO: 'New York ISO', + PJM: 'PJM Interconnection', +}; + function App() { + const [selectedMarket, setSelectedMarket] = useState('ISONE'); return ( +
- - PolyEnergy - - } - subTitle={ - - Virtual Energy Trading - - } - /> +
+
+ + PolyEnergy + + } + subTitle={ + + Virtual Energy Trading + + } + /> +
+
+