mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
remove form property header and replace class name definition
This commit is contained in:
parent
8f9c699b69
commit
f73001a5b8
@ -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'>
|
||||
|
@ -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')}>
|
||||
|
Loading…
Reference in New Issue
Block a user