1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +02:00

Begin JavaScript cleanup

This commit is contained in:
Toby Zerner
2015-08-26 16:56:24 +09:30
parent c5edf48bf2
commit 734badb4bc
5 changed files with 55 additions and 11 deletions

View File

@@ -1,3 +1,12 @@
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* The `Component` class defines a user interface 'building block'. A component
* can generate a virtual DOM to be rendered on each redraw.

View File

@@ -35,11 +35,12 @@ export default class Alert extends Component {
const dismissControl = [];
if (dismissible || dismissible === undefined) {
dismissControl.push(Button.component({
icon: 'times',
className: 'Button Button--link Button--icon Alert-dismiss',
onclick: ondismiss
}));
dismissControl.push(
<Button
icon="times"
className="Button Button--link Button--icon Alert-dismiss"
onclick={ondismiss}/>
);
}
return (