From fe2c487c625967f5b8ef9d29b7c4bed6d8739481 Mon Sep 17 00:00:00 2001 From: Andrew Watkins Date: Thu, 29 Mar 2018 14:56:14 -0700 Subject: [PATCH] Move GraphTips to TypeScript --- ui/src/shared/components/GraphTips.js | 27 -------------------------- ui/src/shared/components/GraphTips.tsx | 24 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 27 deletions(-) delete mode 100644 ui/src/shared/components/GraphTips.js create mode 100644 ui/src/shared/components/GraphTips.tsx diff --git a/ui/src/shared/components/GraphTips.js b/ui/src/shared/components/GraphTips.js deleted file mode 100644 index 9701895594..0000000000 --- a/ui/src/shared/components/GraphTips.js +++ /dev/null @@ -1,27 +0,0 @@ -import React from 'react' -import ReactTooltip from 'react-tooltip' - -const GraphTips = React.createClass({ - render() { - const graphTipsText = - '

Graph Tips:

Click + Drag Zoom in (X or Y)
Shift + Click Pan Graph Window
Double Click Reset Graph Window

Static Legend Tips:

ClickFocus on single Series
Shift + Click Show/Hide single Series

' - return ( -
- ? - -
- ) - }, -}) - -export default GraphTips diff --git a/ui/src/shared/components/GraphTips.tsx b/ui/src/shared/components/GraphTips.tsx new file mode 100644 index 0000000000..11ac085af1 --- /dev/null +++ b/ui/src/shared/components/GraphTips.tsx @@ -0,0 +1,24 @@ +import React, {SFC} from 'react' +import ReactTooltip from 'react-tooltip' + +const graphTipsText = + '

Graph Tips:

Click + Drag Zoom in (X or Y)
Shift + Click Pan Graph Window
Double Click Reset Graph Window

Static Legend Tips:

ClickFocus on single Series
Shift + Click Show/Hide single Series

' + +const GraphTips: SFC = () => ( +
+ ? + +
+) + +export default GraphTips