mirror of
https://github.com/flarum/framework.git
synced 2025-05-24 07:39:56 +08:00
Replace Ember app with Mithril app
This commit is contained in:
11
js/lib/components/field-set.js
Normal file
11
js/lib/components/field-set.js
Normal file
@ -0,0 +1,11 @@
|
||||
import Component from 'flarum/component';
|
||||
import listItems from 'flarum/helpers/list-items';
|
||||
|
||||
export default class FieldSet extends Component {
|
||||
view() {
|
||||
return m('fieldset', {className: this.props.className}, [
|
||||
m('legend', this.props.label),
|
||||
m('ul', listItems(this.props.fields))
|
||||
]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user