diff options
| author | Sam Wilkins <samwilkins333@gmail.com> | 2019-07-23 22:11:09 -0400 |
|---|---|---|
| committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-07-23 22:11:09 -0400 |
| commit | 7c2454f14eeb40c0dee6a5fefed1c954012181bb (patch) | |
| tree | f69ab897f0af693e9c10a9adde32f0108e916006 /src/client/views/InkingControl.tsx | |
| parent | cb95d4b43238538f59babcaa0b0d9dabb9b393b7 (diff) | |
| parent | 7f9e4de6e4b5d06535c5dfc93afa707a355a353d (diff) | |
merged with master
Diffstat (limited to 'src/client/views/InkingControl.tsx')
| -rw-r--r-- | src/client/views/InkingControl.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/InkingControl.tsx b/src/client/views/InkingControl.tsx index c7f7bdb66..1910e409b 100644 --- a/src/client/views/InkingControl.tsx +++ b/src/client/views/InkingControl.tsx @@ -1,5 +1,5 @@ import { observable, action, computed, runInAction } from "mobx"; -import { ColorResult } from 'react-color'; +import { ColorState } from 'react-color'; import React = require("react"); import { observer } from "mobx-react"; import "./InkingControl.scss"; @@ -41,7 +41,7 @@ export class InkingControl extends React.Component { } @undoBatch - switchColor = action((color: ColorResult): void => { + switchColor = action((color: ColorState): void => { this._selectedColor = color.hex + (color.rgb.a !== undefined ? this.decimalToHexString(Math.round(color.rgb.a * 255)) : "ff"); if (InkingControl.Instance.selectedTool === InkTool.None) { if (MainOverlayTextBox.Instance.SetColor(color.hex)) return; |
