1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 09:26:34 +02:00

update: common/components/FieldSet

This commit is contained in:
David Sevilla Martin
2020-08-08 16:13:48 -04:00
committed by Franz Liedke
parent 71178245fc
commit 652d961907

View File

@@ -11,11 +11,11 @@ import listItems from '../helpers/listItems';
* The children should be an array of items to show in the fieldset. * The children should be an array of items to show in the fieldset.
*/ */
export default class FieldSet extends Component { export default class FieldSet extends Component {
view() { view(vnode) {
return ( return (
<fieldset className={this.props.className}> <fieldset className={this.attrs.className}>
<legend>{this.props.label}</legend> <legend>{this.attrs.label}</legend>
<ul>{listItems(this.props.children)}</ul> <ul>{listItems(vnode.children)}</ul>
</fieldset> </fieldset>
); );
} }