Fix download media banner styles
This commit is contained in:
parent
e93a173159
commit
2f6270c585
5 changed files with 89 additions and 30 deletions
|
@ -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()} />;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue