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:
committed by
Franz Liedke
parent
71178245fc
commit
652d961907
@@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user