summaryrefslogtreecommitdiffstats
path: root/webapp/components/help/help_controller.jsx
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-08-18 17:36:43 -0500
committerCorey Hulen <corey@hulen.com>2016-08-18 14:36:43 -0800
commita820b1640bcea06d93fed790b891a853ea02e498 (patch)
tree3b4d3d5289cc39ace0bfc60c36295f32b91dd38b /webapp/components/help/help_controller.jsx
parentb95bd3d8ccea5735b944df8f2fbe7758257ab15e (diff)
downloadchat-a820b1640bcea06d93fed790b891a853ea02e498.tar.gz
chat-a820b1640bcea06d93fed790b891a853ea02e498.tar.bz2
chat-a820b1640bcea06d93fed790b891a853ea02e498.zip
PLT-2345 Switch "help" link below text input box to localizable version (#3794)
Diffstat (limited to 'webapp/components/help/help_controller.jsx')
-rw-r--r--webapp/components/help/help_controller.jsx27
1 files changed, 27 insertions, 0 deletions
diff --git a/webapp/components/help/help_controller.jsx b/webapp/components/help/help_controller.jsx
new file mode 100644
index 000000000..56a13b7e8
--- /dev/null
+++ b/webapp/components/help/help_controller.jsx
@@ -0,0 +1,27 @@
+// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+import React from 'react';
+import ReactDOM from 'react-dom';
+
+export default class HelpController extends React.Component {
+ static get propTypes() {
+ return {
+ children: React.PropTypes.node.isRequired
+ };
+ }
+
+ componentWillUpdate() {
+ ReactDOM.findDOMNode(this).scrollIntoView();
+ }
+
+ render() {
+ return (
+ <div className='help'>
+ <div className='container col-sm-10 col-sm-offset-1'>
+ {this.props.children}
+ </div>
+ </div>
+ );
+ }
+} \ No newline at end of file