1
0
mirror of https://github.com/flarum/core.git synced 2025-07-17 23:01:17 +02:00

Fixed name to camel case

This commit is contained in:
Peter Mein
2015-12-26 13:06:58 +01:00
parent 5431a90dbd
commit 8c8de8eb22

@@ -0,0 +1,13 @@
import icon from 'flarum/helpers/icon';
/**
* The `useronline` helper displays a green circle if the user is online
*
* @param {User} user
* @return {Object}
*/
export default function userOnline(user) {
if (user.lastSeenTime() && user.isOnline()) {
return <span className="UserOnline">{icon('circle')}</span>;
}
}