Browse Source

Merge #283

283: Give each app a different name r=luckysori a=luckysori

This might be stupid, but it makes it easier to know who is who.

Co-authored-by: Lucas Soriano del Pino <l.soriano.del.pino@gmail.com>
refactor/no-log-handler
bors[bot] 3 years ago
committed by GitHub
parent
commit
de85019b9e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      frontend/index.html
  2. 2
      frontend/src/MakerApp.tsx
  3. 2
      frontend/src/TakerApp.tsx

1
frontend/index.html

@ -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>

2
frontend/src/MakerApp.tsx

@ -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);

2
frontend/src/TakerApp.tsx

@ -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);

Loading…
Cancel
Save