bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/actions-bar/raise-hand-button/container.jsx
Ramón Souza 3a531b0532
refactor: Remove the "Raise Hand" experience from the reactions bar (#21373)
* move raise hand out of reactions bar

* adjust reactions bar border-radius

* adjust button background + remove custom icon

* fixing raise hand test

* skipping raise hand test

* fixed learning dashboaard test, flaky to notification test

---------

Co-authored-by: Gabriel Porfirio <gabrielporfirio1994@gmail.com>
2024-10-14 13:16:59 -03:00

27 lines
632 B
JavaScript

import React from 'react';
import { injectIntl } from 'react-intl';
import RaiseHandButton from './component';
import Auth from '/imports/ui/services/auth';
import useCurrentUser from '/imports/ui/core/hooks/useCurrentUser';
const RaiseHandButtonContainer = ({ ...props }) => {
const { data: currentUserData } = useCurrentUser((user) => ({
raiseHand: user.raiseHand,
}));
const currentUser = {
userId: Auth.userID,
raiseHand: currentUserData?.raiseHand,
};
return (
<RaiseHandButton {...{
...currentUser,
...props,
}}
/>
);
};
export default injectIntl(RaiseHandButtonContainer);