Skip to content

Commit

Permalink
deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
batubond007 committed Oct 9, 2023
1 parent 116fea9 commit 3062df4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<script src="https://telegram.org/js/telegram-web-app.js"></script>
<title>React App</title>
</head>
<body bgcolor='#071e26'>
<body style="background-color: #071e26">
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
Expand Down
16 changes: 7 additions & 9 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ function App() {
tele.ready();
});
return (
<div>
<BrowserRouter>
<Routes>
<Route path="/telegram-finance-game/" element={<Navigate to="/telegram-finance-game/stock"/>}/>
<Route path="/telegram-finance-game/stock" element={<StockListView/>}/>
<Route path="/telegram-finance-game/stock/:stockName" element={<ChartView/>}/>
</Routes>
</BrowserRouter>
</div>
<BrowserRouter>
<Routes>
<Route path="/telegram-finance-game/" element={<Navigate to="/telegram-finance-game/stock"/>}/>
<Route path="/telegram-finance-game/stock" element={<StockListView/>}/>
<Route path="/telegram-finance-game/stock/:stockName" element={<ChartView/>}/>
</Routes>
</BrowserRouter>
);
}

Expand Down
1 change: 0 additions & 1 deletion src/services/FinancialDataService.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import stockListData from '../db/stockList.json'
import {formatDateToYYYYMMDD} from "../utils";

let stocks = ["ibm", "apple", "microsoft", "amazon", "tesla"]

Expand Down

0 comments on commit 3062df4

Please sign in to comment.