bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/user-list/container.jsx
João Victor Nunes 06500be757
refactor(storage): replace Tracker.Dependency with observer hook (#20322)
* refactor(storage): replace Tracker.Dependency with observer hook

* fix(storage): set initial value

* refactor(storage): stop using Meteor's Session singleton
2024-06-06 10:50:03 -03:00

19 lines
652 B
JavaScript
Executable File

import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
import getFromUserSettings from '/imports/ui/services/users-settings';
import UserList from './component';
import { useStorageKey } from '../../services/storage/hooks';
const UserListContainer = (props) => {
const CustomLogoUrl = useStorageKey('CustomLogoUrl', 'session');
return (
<UserList CustomLogoUrl={CustomLogoUrl} {...props} />
);
};
export default withTracker(({ compact }) => (
{
showBranding: getFromUserSettings('bbb_display_branding_area', window.meetingClientSettings.public.app.branding.displayBrandingArea),
}
))(UserListContainer);