mirror of
https://github.com/flarum/framework.git
synced 2024-12-05 00:43:39 +08:00
Changed case on helper function
Stub for renaming case of file
This commit is contained in:
parent
b6464a719e
commit
e607297635
|
@ -2,7 +2,7 @@ import Component from 'flarum/Component';
|
|||
import UserCard from 'flarum/components/UserCard';
|
||||
import avatar from 'flarum/helpers/avatar';
|
||||
import username from 'flarum/helpers/username';
|
||||
import useronline from 'flarum/helpers/useronline';
|
||||
import userOnline from 'flarum/helpers/userOnline';
|
||||
import listItems from 'flarum/helpers/listItems';
|
||||
|
||||
/**
|
||||
|
@ -46,7 +46,7 @@ export default class PostUser extends Component {
|
|||
|
||||
return (
|
||||
<div className="PostUser">
|
||||
{useronline(user)}
|
||||
{userOnline(user)}
|
||||
<h3>
|
||||
<a href={app.route.user(user)} config={m.route}>
|
||||
{avatar(user, {className: 'PostUser-avatar'})}{' '}{username(user)}
|
||||
|
|
|
@ -6,7 +6,7 @@ import icon from 'flarum/helpers/icon';
|
|||
* @param {User} user
|
||||
* @return {Object}
|
||||
*/
|
||||
export default function useronline(user) {
|
||||
export default function userOnline(user) {
|
||||
if (user.lastSeenTime() && user.isOnline()) {
|
||||
return <span className="UserOnline">{icon('circle')}</span>;
|
||||
}
|
Loading…
Reference in New Issue
Block a user