mirror of
https://github.com/ascribe/onion.git
synced 2024-07-01 06:02:12 +02: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';
|
'use strict';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import classnames from 'classnames';
|
||||||
|
|
||||||
let ActionPanel = React.createClass({
|
let ActionPanel = React.createClass({
|
||||||
propTypes: {
|
propTypes: {
|
||||||
|
@ -37,18 +37,9 @@ let ActionPanel = React.createClass({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
getClassName() {
|
|
||||||
if(this.state.isFocused) {
|
|
||||||
return 'is-focused';
|
|
||||||
} else {
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={'ascribe-panel-wrapper ' + this.getClassName()}>
|
<div className={classnames('ascribe-panel-wrapper', {'is-focused': this.state.isFocused})}>
|
||||||
<div className='row'>
|
<div className='row'>
|
||||||
<div className='col-xs-7 col-md-8'>
|
<div className='col-xs-7 col-md-8'>
|
||||||
<div className='ascribe-panel-content-wrapper'>
|
<div className='ascribe-panel-content-wrapper'>
|
||||||
|
|
|
@ -14,7 +14,6 @@ import CollapsibleParagraph from '../../../ascribe_collapsible/collapsible_parag
|
||||||
|
|
||||||
import Form from '../../../ascribe_forms/form';
|
import Form from '../../../ascribe_forms/form';
|
||||||
import Property from '../../../ascribe_forms/property';
|
import Property from '../../../ascribe_forms/property';
|
||||||
import FormPropertyHeader from '../../../ascribe_forms/form_property_header';
|
|
||||||
|
|
||||||
import ActionPanel from '../../../ascribe_panel/action_panel';
|
import ActionPanel from '../../../ascribe_panel/action_panel';
|
||||||
|
|
||||||
|
@ -279,9 +278,9 @@ let PrizeJurySettings = React.createClass({
|
||||||
handleSuccess={this.handleCreateSuccess}
|
handleSuccess={this.handleCreateSuccess}
|
||||||
ref='form'
|
ref='form'
|
||||||
buttonSubmitText='INVITE'>
|
buttonSubmitText='INVITE'>
|
||||||
<FormPropertyHeader>
|
<div className="ascribe-form-header">
|
||||||
<h4 style={{margin: '30px 0px 10px 10px'}}>Jury Members</h4>
|
<h4 style={{margin: '30px 0px 10px 10px'}}>Jury Members</h4>
|
||||||
</FormPropertyHeader>
|
</div>
|
||||||
<Property
|
<Property
|
||||||
name='email'
|
name='email'
|
||||||
label={getLangText('New jury member')}>
|
label={getLangText('New jury member')}>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user