TAC: Close Release Announcement when TAC button is clicked (#12475)
* Close RA when TAC button is clicked * Update snapshots
This commit is contained in:
parent
ad7f626e22
commit
6a3741b779
3 changed files with 136 additions and 29 deletions
|
@ -37,6 +37,7 @@ import { KeyBindingAction } from "../../../../accessibility/KeyboardShortcuts";
|
|||
import { ReleaseAnnouncement } from "../../../structures/ReleaseAnnouncement";
|
||||
import { useIsReleaseAnnouncementOpen } from "../../../../hooks/useIsReleaseAnnouncementOpen";
|
||||
import { useSettingValue } from "../../../../hooks/useSettings";
|
||||
import { ReleaseAnnouncementStore } from "../../../../stores/ReleaseAnnouncementStore";
|
||||
|
||||
interface ThreadsActivityCentreProps {
|
||||
/**
|
||||
|
@ -85,6 +86,11 @@ export function ThreadsActivityCentre({ displayButtonLabel }: ThreadsActivityCen
|
|||
disableTooltip={true}
|
||||
displayLabel={displayButtonLabel}
|
||||
notificationLevel={roomsAndNotifications.greatestNotificationLevel}
|
||||
onClick={async () => {
|
||||
// Open the TAC after the release announcement closing
|
||||
setOpen(true);
|
||||
await ReleaseAnnouncementStore.instance.nextReleaseAnnouncement();
|
||||
}}
|
||||
/>
|
||||
</ReleaseAnnouncement>
|
||||
) : (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue