From e607297635e28a24180c73653400abc0ad9e3672 Mon Sep 17 00:00:00 2001 From: Peter Mein Date: Sat, 26 Dec 2015 13:06:31 +0100 Subject: [PATCH] Changed case on helper function Stub for renaming case of file --- framework/core/js/forum/src/components/PostUser.js | 4 ++-- .../{useronline.js => userOnline-rename-for-case-change.js} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename framework/core/js/lib/helpers/{useronline.js => userOnline-rename-for-case-change.js} (87%) diff --git a/framework/core/js/forum/src/components/PostUser.js b/framework/core/js/forum/src/components/PostUser.js index b457b9f2d..38e64f1f5 100644 --- a/framework/core/js/forum/src/components/PostUser.js +++ b/framework/core/js/forum/src/components/PostUser.js @@ -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 (
- {useronline(user)} + {userOnline(user)}

{avatar(user, {className: 'PostUser-avatar'})}{' '}{username(user)} diff --git a/framework/core/js/lib/helpers/useronline.js b/framework/core/js/lib/helpers/userOnline-rename-for-case-change.js similarity index 87% rename from framework/core/js/lib/helpers/useronline.js rename to framework/core/js/lib/helpers/userOnline-rename-for-case-change.js index dc4804850..edf21b498 100644 --- a/framework/core/js/lib/helpers/useronline.js +++ b/framework/core/js/lib/helpers/userOnline-rename-for-case-change.js @@ -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 {icon('circle')}; }