Fix download media banner styles

This commit is contained in:
trevor-signal 2024-10-29 13:35:14 -04:00 committed by GitHub
parent e93a173159
commit 2f6270c585
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 89 additions and 30 deletions

View file

@ -80,6 +80,13 @@ const defaultGroups: Array<GroupListItemConversationType> = [
}),
];
const backupMediaDownloadProgress = {
downloadedBytes: 1024,
totalBytes: 4098,
downloadBannerDismissed: false,
isIdle: false,
isPaused: false,
};
const defaultArchivedConversations: Array<ConversationType> = [
getDefaultConversation({
id: 'michelle-archive-convo',
@ -342,6 +349,45 @@ export function InboxNoConversations(): JSX.Element {
);
}
export function InboxBackupMediaDownload(): JSX.Element {
return (
<LeftPaneInContainer
{...useProps({
backupMediaDownloadProgress,
})}
/>
);
}
export function InboxBackupMediaDownloadWithDialogs(): JSX.Element {
return (
<LeftPaneInContainer
{...useProps({
backupMediaDownloadProgress,
unsupportedOSDialogType: 'error',
})}
/>
);
}
export function InboxBackupMediaDownloadWithDialogsAndUnpinnedConversations(): JSX.Element {
return (
<LeftPaneInContainer
{...useProps({
backupMediaDownloadProgress,
unsupportedOSDialogType: 'error',
modeSpecificProps: {
...defaultSearchProps,
mode: LeftPaneMode.Inbox,
pinnedConversations: [],
conversations: defaultConversations,
archivedConversations: [],
isAboutToSearch: false,
},
})}
/>
);
}
export function InboxUsernameCorrupted(): JSX.Element {
return (
<LeftPaneInContainer
@ -480,6 +526,24 @@ export function InboxPinnedAndNonPinnedConversations(): JSX.Element {
);
}
export function InboxPinnedAndNonPinnedConversationsWithBackupDownload(): JSX.Element {
return (
<LeftPaneInContainer
{...useProps({
modeSpecificProps: {
...defaultSearchProps,
mode: LeftPaneMode.Inbox,
pinnedConversations,
conversations: defaultConversations,
archivedConversations: [],
isAboutToSearch: false,
},
backupMediaDownloadProgress,
})}
/>
);
}
export function InboxPinnedNonPinnedAndArchivedConversations(): JSX.Element {
return <LeftPaneInContainer {...useProps()} />;
}