diff --git a/src/frontend/src/features/rooms/components/ActiveSpeaker.tsx b/src/frontend/src/features/rooms/components/ActiveSpeaker.tsx index d681019f..3d5748c6 100644 --- a/src/frontend/src/features/rooms/components/ActiveSpeaker.tsx +++ b/src/frontend/src/features/rooms/components/ActiveSpeaker.tsx @@ -1,3 +1,4 @@ +import React from 'react' import { styled } from '@/styled-system/jsx' const StyledContainer = styled('div', { @@ -67,35 +68,36 @@ export type ActiveSpeakerProps = { pushToTalk?: boolean } -export const ActiveSpeaker = ({ - isSpeaking, - pushToTalk, -}: ActiveSpeakerProps) => { - return ( - - - - - - ) -} +export const ActiveSpeaker = React.memo( + ({ isSpeaking, pushToTalk }: ActiveSpeakerProps) => { + return ( + + + + + + ) + } +) + +ActiveSpeaker.displayName = 'ActiveSpeaker'