1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00

remove form property header and replace class name definition

This commit is contained in:
Tim Daubenschütz 2015-08-07 14:31:37 +02:00
parent 8f9c699b69
commit f73001a5b8
2 changed files with 4 additions and 14 deletions

View File

@ -1,7 +1,7 @@
'use strict';
import React from 'react';
import classnames from 'classnames';
let ActionPanel = React.createClass({
propTypes: {
@ -37,18 +37,9 @@ let ActionPanel = React.createClass({
});
},
getClassName() {
if(this.state.isFocused) {
return 'is-focused';
} else {
return '';
}
},
render() {
return (
<div className={'ascribe-panel-wrapper ' + this.getClassName()}>
<div className={classnames('ascribe-panel-wrapper', {'is-focused': this.state.isFocused})}>
<div className='row'>
<div className='col-xs-7 col-md-8'>
<div className='ascribe-panel-content-wrapper'>

View File

@ -14,7 +14,6 @@ import CollapsibleParagraph from '../../../ascribe_collapsible/collapsible_parag
import Form from '../../../ascribe_forms/form';
import Property from '../../../ascribe_forms/property';
import FormPropertyHeader from '../../../ascribe_forms/form_property_header';
import ActionPanel from '../../../ascribe_panel/action_panel';
@ -279,9 +278,9 @@ let PrizeJurySettings = React.createClass({
handleSuccess={this.handleCreateSuccess}
ref='form'
buttonSubmitText='INVITE'>
<FormPropertyHeader>
<div className="ascribe-form-header">
<h4 style={{margin: '30px 0px 10px 10px'}}>Jury Members</h4>
</FormPropertyHeader>
</div>
<Property
name='email'
label={getLangText('New jury member')}>