Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

⚡️(frontend) memoize the EffectsButton

lebaudantoinea5651249c5ae
diff --git a/src/frontend/src/features/participantTile/components/participantTileFocus/EffectsButton.tsx b/src/frontend/src/features/participantTile/components/participantTileFocus/EffectsButton.tsx
index 7060ec2b..be0df6f1 100644
--- a/src/frontend/src/features/participantTile/components/participantTileFocus/EffectsButton.tsx
+++ b/src/frontend/src/features/participantTile/components/participantTileFocus/EffectsButton.tsx
@@ -1,9 +1,10 @@
+import React from 'react'
import { useTranslation } from 'react-i18next'
import { useSidePanel } from '@/features/rooms/livekit/hooks/useSidePanel'
import { Button } from '@/primitives'
import { RiImageCircleAiFill } from '@remixicon/react'
-export const EffectsButton = () => {
+export const EffectsButton = React.memo(() => {
const { t } = useTranslation('rooms', { keyPrefix: 'participantTileFocus' })
const { isEffectsOpen, toggleEffects } = useSidePanel()
return (
@@ -17,4 +18,6 @@ export const EffectsButton = () => {
<RiImageCircleAiFill />
</Button>
)
-}
+})
+
+EffectsButton.displayName = 'EffectsButton'