Update src/components/views/voip/CallView/CallViewHeader.tsx

Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Dariusz Niemczyk 2021-08-03 13:53:49 +02:00 committed by GitHub
parent 90c2eb0b92
commit 838d9105c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,13 +96,13 @@ function getAvatarBasedOnRoomType(roomOrWidget: Room | IApp) {
return null; return null;
} }
export function CallViewHeader({ export const CallViewHeader: React.FC<CallViewHeaderProps> = ({
type, type,
pipMode = false, pipMode = false,
callRooms = [], callRooms = [],
app, app,
onPipMouseDown, onPipMouseDown,
}: CallViewHeaderProps) { }) {
const [callRoom, onHoldCallRoom] = callRooms; const [callRoom, onHoldCallRoom] = callRooms;
const callTypeText = callTypeTranslationByType[type](app); const callTypeText = callTypeTranslationByType[type](app);
const avatar = getAvatarBasedOnRoomType(callRoom ?? app); const avatar = getAvatarBasedOnRoomType(callRoom ?? app);