From 9e33d53b7dfe1a7e8bd515a0a985c9b37057aca1 Mon Sep 17 00:00:00 2001 From: yipstanley Date: Thu, 7 Mar 2019 23:53:13 -0500 Subject: fixes/changes --- src/client/views/InkingStroke.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client/views/InkingStroke.tsx') diff --git a/src/client/views/InkingStroke.tsx b/src/client/views/InkingStroke.tsx index bab9f3a60..d724421d3 100644 --- a/src/client/views/InkingStroke.tsx +++ b/src/client/views/InkingStroke.tsx @@ -6,12 +6,12 @@ import React = require("react"); interface StrokeProps { - id: number; + id: string; line: Array<{ x: number, y: number }>; color: string; width: string; tool: InkTool; - deleteCallback: (index: number) => void; + deleteCallback: (index: string) => void; } @observer @@ -24,7 +24,7 @@ export class InkingStroke extends React.Component { private _canvasColor: string = "#cdcdcd"; deleteStroke = (e: React.MouseEvent): void => { - if (InkingControl.getInstance().selectedTool === InkTool.Eraser && e.buttons === 1) { + if (InkingControl.Instance.selectedTool === InkTool.Eraser && e.buttons === 1) { this.props.deleteCallback(this.props.id); } } -- cgit v1.2.3-70-g09d2