Browse Source
Give each app a different name
refactor/no-log-handler
Lucas Soriano del Pino
3 years ago
No known key found for this signature in database
GPG Key ID: EE611E973A1530E7
3 changed files with
4 additions and
1 deletions
-
frontend/index.html
-
frontend/src/MakerApp.tsx
-
frontend/src/TakerApp.tsx
|
|
@ -4,7 +4,6 @@ |
|
|
|
<meta charset="UTF-8" /> |
|
|
|
<link rel="icon" type="image/svg+xml" href="./favicon.svg" /> |
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
|
|
|
<title>Hermes</title> |
|
|
|
</head> |
|
|
|
<body> |
|
|
|
<div id="root"></div> |
|
|
|
|
|
@ -31,6 +31,8 @@ import { CfdSellOrderPayload, postCfdSellOrderRequest } from "./MakerClient"; |
|
|
|
const SPREAD = 1.01; |
|
|
|
|
|
|
|
export default function App() { |
|
|
|
document.title = "Hermes Maker"; |
|
|
|
|
|
|
|
let source = useEventSource({ source: "/api/feed", options: { withCredentials: true } }); |
|
|
|
|
|
|
|
const cfdsOrUndefined = useLatestEvent<Cfd[]>(source, "cfds", intoCfd); |
|
|
|
|
|
@ -58,6 +58,8 @@ async function getMargin(payload: MarginRequestPayload): Promise<MarginResponse> |
|
|
|
} |
|
|
|
|
|
|
|
export default function App() { |
|
|
|
document.title = "Hermes Taker"; |
|
|
|
|
|
|
|
let source = useEventSource({ source: "/api/feed" }); |
|
|
|
|
|
|
|
const cfdsOrUndefined = useLatestEvent<Cfd[]>(source, "cfds", intoCfd); |
|
|
|