From d514a553f2fc43b5e08fbe5f77b007c2515164f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Thu, 9 Jul 2015 12:06:09 +0200 Subject: [PATCH] reformat intendation for login modal handler --- .../ascribe_forms/property_collapsible.js | 1 - js/components/login_modal_handler.js | 54 +++++++++---------- 2 files changed, 27 insertions(+), 28 deletions(-) diff --git a/js/components/ascribe_forms/property_collapsible.js b/js/components/ascribe_forms/property_collapsible.js index f3a61f65..d2cd0f95 100644 --- a/js/components/ascribe_forms/property_collapsible.js +++ b/js/components/ascribe_forms/property_collapsible.js @@ -75,7 +75,6 @@ let PropertyCollapsile = React.createClass({ onClick={this.handleFocus} onFocus={this.handleFocus}> {/* PLEASE LEAVE THE SPACE BETWEEN LABEL and this.props.label */} diff --git a/js/components/login_modal_handler.js b/js/components/login_modal_handler.js index f6edec5d..005fbcd7 100644 --- a/js/components/login_modal_handler.js +++ b/js/components/login_modal_handler.js @@ -5,39 +5,39 @@ import React from 'react'; import Button from 'react-bootstrap/lib/Button'; import Modal from 'react-bootstrap/lib/Modal'; import OverlayMixin from 'react-bootstrap/lib/OverlayMixin'; -import { getLangText } from '../utils/lang_utils.js' +import { getLangText } from '../utils/lang_utils.js'; let LoginModalHandler = React.createClass({ - mixins: [OverlayMixin], + mixins: [OverlayMixin], - getInitialState() { - return { - isModalOpen: true - }; - }, + getInitialState() { + return { + isModalOpen: true + }; + }, - handleToggle() { - this.setState({ - isModalOpen: !this.state.isModalOpen - }); - }, + handleToggle() { + this.setState({ + isModalOpen: !this.state.isModalOpen + }); + }, - render() { - if (!this.state.isModalOpen || !(this.props.query.login === '')) { - return ; + render() { + if(!this.state.isModalOpen || !(this.props.query.login === '')) { + return ; + } + + return ( + +
+ This modal is controlled by our custom trigger component. +
+
+ +
+
+ ); } - - return ( - -
- This modal is controlled by our custom trigger component. -
-
- -
-
- ); - } }); export default LoginModalHandler; \ No newline at end of file