From 113c4cfae4fd36f8cdad9b7a929eb33db21d25d2 Mon Sep 17 00:00:00 2001 From: Jared Scheib Date: Tue, 18 Jul 2017 12:15:59 -0700 Subject: [PATCH] Factor out RuleMessageText into dedicated ES6 component --- ui/src/kapacitor/components/RuleMessage.js | 14 +++------ .../kapacitor/components/RuleMessageText.js | 31 +++++++++++++++++++ 2 files changed, 35 insertions(+), 10 deletions(-) create mode 100644 ui/src/kapacitor/components/RuleMessageText.js diff --git a/ui/src/kapacitor/components/RuleMessage.js b/ui/src/kapacitor/components/RuleMessage.js index 5876d83c8c..5b41b964c0 100644 --- a/ui/src/kapacitor/components/RuleMessage.js +++ b/ui/src/kapacitor/components/RuleMessage.js @@ -2,6 +2,7 @@ import React, {PropTypes} from 'react' import classnames from 'classnames' import RuleMessageAlertConfig from 'src/kapacitor/components/RuleMessageAlertConfig' +import RuleMessageText from 'src/kapacitor/components/RuleMessageText' import RuleMessageTemplates from 'src/kapacitor/components/RuleMessageTemplates' import {RULE_MESSAGE_TEMPLATES, DEFAULT_ALERTS} from '../constants' @@ -90,18 +91,11 @@ export const RuleMessage = React.createClass({ /> : null} -