3a531b0532
* 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>
27 lines
632 B
JavaScript
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);
|