aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2025-04-27 23:17:46 -0600
committerNavan Chauhan <navanchauhan@gmail.com>2025-04-27 23:17:46 -0600
commit1ac28532969429f90fc3b4fe666e58ace807d17a (patch)
treea67d449b93a4656bf8be902d70142ee3ad1fe1bd
parent03183c0ca28abc968d77ed842a387a1da73af61b (diff)
fix imports
-rw-r--r--client/src/App.js4
-rw-r--r--client/src/components/BidsPage.jsx2
-rw-r--r--client/src/components/MarketDataPage.jsx4
-rw-r--r--client/src/components/SubmitBidPage.jsx4
-rw-r--r--client/src/components/index.js3
-rw-r--r--client/src/index.js10
6 files changed, 12 insertions, 15 deletions
diff --git a/client/src/App.js b/client/src/App.js
index 5134310..c85e46c 100644
--- a/client/src/App.js
+++ b/client/src/App.js
@@ -1,8 +1,6 @@
import React, { useState, createContext } from 'react';
import { Routes, Route, Navigate, Link, useLocation } from 'react-router-dom';
-import MarketDataPage from './MarketDataPage';
-import BidsPage from './BidsPage';
-import SubmitBidPage from './SubmitBidPage';
+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';
diff --git a/client/src/components/BidsPage.jsx b/client/src/components/BidsPage.jsx
index e0c4128..2b97e99 100644
--- a/client/src/components/BidsPage.jsx
+++ b/client/src/components/BidsPage.jsx
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
import { Table, Typography, Spin, Message, Card, Empty, Badge } from '@arco-design/web-react';
import { IconArrowRise, IconArrowFall } from '@arco-design/web-react/icon';
import '@arco-design/web-react/dist/css/arco.css';
-import API_BASE_URL from './config';
+import API_BASE_URL from '../config';
const columns = (bids) => [
{
diff --git a/client/src/components/MarketDataPage.jsx b/client/src/components/MarketDataPage.jsx
index 5e028f8..9d98269 100644
--- a/client/src/components/MarketDataPage.jsx
+++ b/client/src/components/MarketDataPage.jsx
@@ -3,8 +3,8 @@ import { Typography, Spin, Message, Card, Grid } from '@arco-design/web-react';
import '@arco-design/web-react/dist/css/arco.css';
import { initVChartArcoTheme } from '@visactor/vchart-arco-theme';
import { VChart } from '@visactor/react-vchart';
-import API_BASE_URL from './config';
-import { MarketContext, MARKET_FULL_NAMES } from './App';
+import API_BASE_URL from '../config';
+import { MarketContext, MARKET_FULL_NAMES } from '../App';
// TODO:
//
diff --git a/client/src/components/SubmitBidPage.jsx b/client/src/components/SubmitBidPage.jsx
index 7737c20..bed92be 100644
--- a/client/src/components/SubmitBidPage.jsx
+++ b/client/src/components/SubmitBidPage.jsx
@@ -4,8 +4,8 @@ import '@arco-design/web-react/dist/css/arco.css';
import dayjs from 'dayjs';
import utc from 'dayjs/plugin/utc';
import timezone from 'dayjs/plugin/timezone';
-import API_BASE_URL from './config';
-import { MarketContext, MARKET_FULL_NAMES } from './App';
+import API_BASE_URL from '../config';
+import { MarketContext, MARKET_FULL_NAMES } from '../App';
dayjs.extend(utc);
dayjs.extend(timezone);
diff --git a/client/src/components/index.js b/client/src/components/index.js
new file mode 100644
index 0000000..9ca2287
--- /dev/null
+++ b/client/src/components/index.js
@@ -0,0 +1,3 @@
+export { default as MarketDataPage } from './MarketDataPage';
+export { default as BidsPage } from './BidsPage';
+export { default as SubmitBidPage } from './SubmitBidPage';
diff --git a/client/src/index.js b/client/src/index.js
index bebdf88..92a3918 100644
--- a/client/src/index.js
+++ b/client/src/index.js
@@ -1,17 +1,13 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
-import './index.css';
+import './styles/index.css';
import App from './App';
-import reportWebVitals from './reportWebVitals';
-import { initVChartArcoTheme } from '@visactor/vchart-arco-theme';
+import reportWebVitals from './utils/reportWebVitals';
import { BrowserRouter } from 'react-router-dom';import { ConfigProvider } from '@arco-design/web-react';
import enUS from '@arco-design/web-react/es/locale/en-US';
-initVChartArcoTheme({
- defaultMode: 'light',
- isWatchingMode: true
-});
+
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(