Adapt the rendering of extra icons in the room header (#11835)

Signed-off-by: Charly Nguyen <charly.nguyen@nordeck.net>
This commit is contained in:
Charly Nguyen
2023-11-09 12:23:30 +01:00
committed by GitHub
parent 03b01b4a50
commit 47a4e4a52a
6 changed files with 11 additions and 11 deletions

View File

@@ -188,7 +188,7 @@ export default function RoomHeader({
props.onClick();
}}
>
{props.icon}
{typeof props.icon === "function" ? props.icon() : props.icon}
</IconButton>
</Tooltip>
);