feat(gif) Added GIF support (GIPHY integration) (#11021)

Show GIF menu in reactions menu
Search GIFs using the GIPHY API
Show GIFs as images in chat
Show GIFs on the thumbnail of the participant that sent it
Move GIF focus using up/ down arrows and send with Enter
Added analytics
This commit is contained in:
Robert Pintilii
2022-03-11 15:00:49 +02:00
committed by GitHub
parent b6d55571ba
commit 190041fc5a
30 changed files with 1648 additions and 38 deletions

View File

@@ -8,6 +8,11 @@ import { DRAWER_MAX_HEIGHT } from '../../constants';
type Props = {
/**
* Class name for custom styles.
*/
className: string,
/**
* The component(s) to be displayed within the drawer menu.
*/
@@ -40,6 +45,7 @@ const useStyles = makeStyles(theme => {
*/
function Drawer({
children,
className = '',
isOpen,
onClose
}: Props) {
@@ -72,7 +78,7 @@ function Drawer({
className = 'drawer-menu-container'
onClick = { handleOutsideClick }>
<div
className = { `drawer-menu ${styles.drawer}` }
className = { `drawer-menu ${styles.drawer} ${className}` }
onClick = { handleInsideClick }>
{children}
</div>