From 61ca9f318dd0f7b3747122411430101781156c4a Mon Sep 17 00:00:00 2001 From: colinmorris Date: Thu, 2 Mar 2017 10:34:10 -0800 Subject: [PATCH] toolbox tooltips --- src/Toolbox.js | 21 ++++++++++++++------- src/constants.js | 7 ++++++- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/src/Toolbox.js b/src/Toolbox.js index c7d88f6..db793d6 100644 --- a/src/Toolbox.js +++ b/src/Toolbox.js @@ -4,7 +4,7 @@ import Clipboard from 'clipboard'; import './Toolbox.css'; import config from './config.js'; -import {MODE} from './constants.js'; +import {MODE, MODE_TOOLTIPS} from './constants.js'; // TODO: is this really the orthodox way to do this? :/ new Clipboard('#perma'); @@ -23,6 +23,7 @@ class Toolbox extends Component { renderModeRadio = (mode_key) => { var mode = MODE[mode_key]; + var tt = MODE_TOOLTIPS[mode_key]; // TODO: Really when we get a change to state.verse, we should see if // the new verse is custom && mode is color_title, and if so, we should // automatically switch to a different mode. But bleh. @@ -31,7 +32,8 @@ class Toolbox extends Component { var divCname = disabled ? "radio-inline disabled" : "radio-inline"; return (
-