From d418dd77f23ab24e91dfebad94832f9496eb567d Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Mon, 28 Apr 2025 00:20:28 -0600 Subject: prettifier --- client/src/App.js | 170 +++++++++++++++++++++++++++++++++--------------------- 1 file changed, 103 insertions(+), 67 deletions(-) (limited to 'client/src/App.js') diff --git a/client/src/App.js b/client/src/App.js index c85e46c..0bd1dd4 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -1,33 +1,34 @@ -import React, { useState, createContext } from 'react'; -import { Routes, Route, Navigate, Link, useLocation } from 'react-router-dom'; -import { MarketDataPage, BidsPage, SubmitBidPage } from './components'; -import { Menu, Select, PageHeader, Typography } from '@arco-design/web-react'; -import '@arco-design/web-react/dist/css/arco.css'; +import React, { useState, createContext } from "react"; +import { Routes, Route, Navigate, Link, useLocation } from "react-router-dom"; +import { MarketDataPage, BidsPage, SubmitBidPage } from "./components"; +import { Menu, Select, PageHeader, Typography } from "@arco-design/web-react"; +import "@arco-design/web-react/dist/css/arco.css"; const ghostBgStyle = { - backgroundImage: 'radial-gradient(var(--color-fill-3) 1px, rgba(0, 0, 0, 0) 1px)', - backgroundSize: '16px 16px', + backgroundImage: + "radial-gradient(var(--color-fill-3) 1px, rgba(0, 0, 0, 0) 1px)", + backgroundSize: "16px 16px", 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', + 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'); + const [selectedMarket, setSelectedMarket] = useState("ISONE"); const location = useLocation(); return ( -
- -
-
-
- - PolyEnergy - - } - subTitle={ - - Virtual Energy Trading - - } - /> -
-
- ({ + label: market, + value: market, + }))} + /> +
+
+ + + Market Data + + + Submit Bid + + + My Bids + + +
+
+ + } /> + } /> + } /> + } /> + +
+
+ © {new Date().getFullYear()} PolyEnergy. All rights reserved. +
- -
); } -- cgit v1.2.3