Username and username link integrity check

This commit is contained in:
Fedor Indutny 2023-11-03 23:05:11 +01:00 committed by GitHub
parent 1be90fff3d
commit 3664063d71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 636 additions and 35 deletions

View file

@ -158,6 +158,8 @@ const useProps = (overrideProps: OverridePropsType = {}): PropsType => {
hasRelinkDialog: false,
hasUpdateDialog: false,
unsupportedOSDialogType: undefined,
usernameCorrupted: false,
usernameLinkCorrupted: false,
isUpdateDownloaded,
navTabsCollapsed: false,
@ -269,6 +271,7 @@ const useProps = (overrideProps: OverridePropsType = {}): PropsType => {
'toggleConversationInChooseMembers'
),
toggleNavTabsCollapse: action('toggleNavTabsCollapse'),
toggleProfileEditor: action('toggleProfileEditor'),
updateSearchTerm: action('updateSearchTerm'),
...overrideProps,
@ -302,6 +305,42 @@ export function InboxNoConversations(): JSX.Element {
);
}
export function InboxUsernameCorrupted(): JSX.Element {
return (
<LeftPaneInContainer
{...useProps({
modeSpecificProps: {
...defaultSearchProps,
mode: LeftPaneMode.Inbox,
pinnedConversations: [],
conversations: [],
archivedConversations: [],
isAboutToSearch: false,
},
usernameCorrupted: true,
})}
/>
);
}
export function InboxUsernameLinkCorrupted(): JSX.Element {
return (
<LeftPaneInContainer
{...useProps({
modeSpecificProps: {
...defaultSearchProps,
mode: LeftPaneMode.Inbox,
pinnedConversations: [],
conversations: [],
archivedConversations: [],
isAboutToSearch: false,
},
usernameLinkCorrupted: true,
})}
/>
);
}
export function InboxOnlyPinnedConversations(): JSX.Element {
return (
<LeftPaneInContainer