From 1a2bd55c099391092de573f92cea48f270957354 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 11 Nov 2020 15:17:34 +0000 Subject: [PATCH 1/2] Fix New Room Intro invite to this room button --- src/components/views/rooms/NewRoomIntro.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/views/rooms/NewRoomIntro.tsx b/src/components/views/rooms/NewRoomIntro.tsx index 27404eef12..be4ecaffb3 100644 --- a/src/components/views/rooms/NewRoomIntro.tsx +++ b/src/components/views/rooms/NewRoomIntro.tsx @@ -99,6 +99,10 @@ const NewRoomIntro = () => { }); } + const onInviteClick = () => { + dis.dispatch({ action: "view_invite", roomId }); + }; + const avatarUrl = room.currentState.getStateEvents(EventType.RoomAvatar, "")?.getContent()?.url; body = { })}

{topicText}

- + {_t("Invite to this room")}
From 2adc578d285c2b81671e3b7ffa334b1135cdc446 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 11 Nov 2020 17:31:30 +0000 Subject: [PATCH 2/2] mark the onClick prop required on AccessibleButton --- src/components/views/elements/AccessibleButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/elements/AccessibleButton.tsx b/src/components/views/elements/AccessibleButton.tsx index ae822204df..e634057a21 100644 --- a/src/components/views/elements/AccessibleButton.tsx +++ b/src/components/views/elements/AccessibleButton.tsx @@ -39,7 +39,7 @@ interface IProps extends React.InputHTMLAttributes { tabIndex?: number; disabled?: boolean; className?: string; - onClick?(e?: ButtonEvent): void; + onClick(e?: ButtonEvent): void; } interface IAccessibleButtonProps extends React.InputHTMLAttributes {