feat(app): add help for messaging paused accounts (#3481)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-14 22:45:26 +02:00
1 parent a39410623e
commit a7ba56b140
40 files changed
+1750 -1

No files matched your search

@@ -1,9 +1,13 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {Nagbar} from '@app/features/app/components/layout/Nagbar';
import {NagbarButton} from '@app/features/app/components/layout/NagbarButton';
import {NagbarContent} from '@app/features/app/components/layout/NagbarContent';
import {NAGBAR_TONES, NagbarToneKind} from '@app/features/app/components/layout/NagbarTones';
import RuntimeConfig from '@app/features/app/state/RuntimeConfig';
import {openMessagingPausedHelpModal} from '@app/features/user/components/modals/MessagingPausedHelpModal';
import {ACCOUNT_LIMITED_NOTICE_DESCRIPTOR} from '@app/features/user/utils/AccountLimitUtils';
import {TEXT_DID_NOT_GO_THROUGH_DESCRIPTOR} from '@app/features/user/utils/MessagingPausedHelpEmail';
import {useLingui} from '@lingui/react/macro';
import {observer} from 'mobx-react-lite';
@@ -23,6 +27,17 @@ export const AccountLimitedNagbar = observer(({isMobile}: {isMobile: boolean}) =
{i18n._(ACCOUNT_LIMITED_NOTICE_DESCRIPTOR)}
</span>
}
actions={
RuntimeConfig.isSelfHosted() ? undefined : (
<NagbarButton
isMobile={isMobile}
onClick={openMessagingPausedHelpModal}
data-flx="app.app-layout.nagbars.account-limited-nagbar.nagbar-button.open-help"
>
{i18n._(TEXT_DID_NOT_GO_THROUGH_DESCRIPTOR)}
</NagbarButton>
)
}
data-flx="app.app-layout.nagbars.account-limited-nagbar.nagbar-content"
/>
</Nagbar>