Replace home icon with new one (#7571)

This commit is contained in:
Michael Telatynski 2022-01-18 15:29:01 +00:00 committed by GitHub
parent 47cbef2af2
commit d5412e52ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 15 additions and 8 deletions

View file

@ -128,7 +128,7 @@ const SpaceContextMenu = ({ space, hideHeader, onFinished, ...props }: IProps) =
const canAddRooms = space.currentState.maySendStateEvent(EventType.SpaceChild, userId);
let newRoomSection;
let newRoomSection: JSX.Element;
if (space.currentState.maySendStateEvent(EventType.SpaceChild, userId)) {
const onNewRoomClick = (ev: ButtonEvent) => {
ev.preventDefault();
@ -194,6 +194,11 @@ const SpaceContextMenu = ({ space, hideHeader, onFinished, ...props }: IProps) =
{ space.name }
</div> }
<IconizedContextMenuOptionList first>
<IconizedContextMenuOption
iconClassName="mx_SpacePanel_iconHome"
label={_t("Space home")}
onClick={onExploreRoomsClick}
/>
{ inviteOption }
<IconizedContextMenuOption
iconClassName="mx_SpacePanel_iconExplore"