Browse Source
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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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" / >
< meta charset = "UTF-8" / >
< link rel = "icon" type = "image/svg+xml" href = "./favicon.svg" / >
< link rel = "icon" type = "image/svg+xml" href = "./favicon.svg" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" / >
< title > Hermes< / title >
< / head >
< / head >
< body >
< body >
< div id = "root" > < / div >
< div id = "root" > < / div >
@ -31,6 +31,8 @@ import { CfdSellOrderPayload, postCfdSellOrderRequest } from "./MakerClient";
const SPREAD = 1.01 ;
const SPREAD = 1.01 ;
export default function App() {
export default function App() {
document . title = "Hermes Maker" ;
let source = useEventSource ( { source : "/api/feed" , options : { withCredentials : true } } ) ;
let source = useEventSource ( { source : "/api/feed" , options : { withCredentials : true } } ) ;
const cfdsOrUndefined = useLatestEvent < Cfd [ ] > ( source , "cfds" , intoCfd ) ;
const cfdsOrUndefined = useLatestEvent < Cfd [ ] > ( source , "cfds" , intoCfd ) ;
@ -58,6 +58,8 @@ async function getMargin(payload: MarginRequestPayload): Promise<MarginResponse>
}
}
export default function App() {
export default function App() {
document . title = "Hermes Taker" ;
let source = useEventSource ( { source : "/api/feed" } ) ;
let source = useEventSource ( { source : "/api/feed" } ) ;
const cfdsOrUndefined = useLatestEvent < Cfd [ ] > ( source , "cfds" , intoCfd ) ;
const cfdsOrUndefined = useLatestEvent < Cfd [ ] > ( source , "cfds" , intoCfd ) ;