mirror of
https://github.com/flarum/framework.git
synced 2025-05-29 11:40:18 +08:00
Massive JavaScript cleanup
- Use JSX for templates - Docblock/comment everything - Mostly passes ESLint (still some work to do) - Lots of renaming, refactoring, etc. CSS hasn't been updated yet.
This commit is contained in:
@ -1,14 +1,14 @@
|
||||
import Component from 'flarum/component';
|
||||
import Component from 'flarum/Component';
|
||||
|
||||
/**
|
||||
|
||||
* The `Separator` component defines a menu separator item.
|
||||
*/
|
||||
class Separator extends Component {
|
||||
view() {
|
||||
return m('span');
|
||||
return <li className="divider"/>;
|
||||
}
|
||||
}
|
||||
|
||||
Separator.wrapperClass = 'divider';
|
||||
Separator.isListItem = true;
|
||||
|
||||
export default Separator;
|
||||
|
Reference in New Issue
Block a user