1
0
mirror of https://github.com/ascribe/onion.git synced 2024-07-01 06:02:12 +02:00

Prune unnecessary divs from some components

This commit is contained in:
Brett Sun 2015-11-03 12:10:43 +01:00
parent 54212627bb
commit 3929712e9d
3 changed files with 20 additions and 26 deletions

View File

@ -16,13 +16,11 @@ let LumenusEditionContainer = React.createClass({
render() { render() {
return ( return (
<div> <EditionContainer
<EditionContainer params={this.props.params}
params={this.props.params} actionPanelButtonListType={LumenusAclButtonList}
actionPanelButtonListType={LumenusAclButtonList} furtherDetailsType={LumenusFurtherDetails}
furtherDetailsType={LumenusFurtherDetails} location={this.props.location} />
location={this.props.location} />
</div>
); );
} }
}); });

View File

@ -14,12 +14,10 @@ let LumenusPieceContainer = React.createClass({
render() { render() {
return ( return (
<div> <PieceContainer
<PieceContainer params={this.props.params}
params={this.props.params} furtherDetailsType={LumenusFurtherDetails}
furtherDetailsType={LumenusFurtherDetails} location={this.props.location} />
location={this.props.location} />
</div>
); );
} }
}); });

View File

@ -18,19 +18,17 @@ let LumenusPieceList = React.createClass({
setDocumentTitle(getLangText('Collection')); setDocumentTitle(getLangText('Collection'));
return ( return (
<div> <PieceList
<PieceList redirectTo="/register_piece?slide_num=0"
redirectTo="/register_piece?slide_num=0" bulkModalButtonListType={LumenusAclButtonList}
bulkModalButtonListType={LumenusAclButtonList} filterParams={[{
filterParams={[{ label: getLangText('Show works I have'),
label: getLangText('Show works I have'), items: [{
items: [{ key: 'acl_consigned',
key: 'acl_consigned', label: getLangText('consigned to Lumenus')
label: getLangText('consigned to Lumenus') }]
}] }]}
}]} location={this.props.location}/>
location={this.props.location}/>
</div>
); );
} }
}); });