diff --git a/websrc/components/Overlays.tsx b/websrc/components/Overlays.tsx index 5e6597c..635db43 100644 --- a/websrc/components/Overlays.tsx +++ b/websrc/components/Overlays.tsx @@ -1,4 +1,6 @@ import React, {Component} from "react"; +import {socket} from "../index"; +import {EventName} from "../types"; export type ModalProps = { show: boolean, @@ -66,7 +68,11 @@ export class ClosePositionModal extends Component { diff --git a/websrc/types.ts b/websrc/types.ts index 191a892..0798fd2 100644 --- a/websrc/types.ts +++ b/websrc/types.ts @@ -46,5 +46,6 @@ export enum EventName { NewTick = "new_tick", FirstConnect = "first_connect", NewEvent = "new_event", + ClosePosition = "close_position" }