Retry dialog for errors during backup download

This commit is contained in:
ayumi-signal 2024-10-07 06:32:31 -07:00 committed by GitHub
parent 6e1fd5958e
commit 12f28448b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 202 additions and 11 deletions

View file

@ -21,6 +21,7 @@ const Template: StoryFn<PropsType> = (args: PropsType) => (
{...args}
i18n={i18n}
onCancel={action('onCancel')}
onRetry={action('onRetry')}
/>
);
@ -41,3 +42,10 @@ Full.args = {
currentBytes: 1024,
totalBytes: 1024,
};
export const Error = Template.bind({});
Error.args = {
currentBytes: 500 * 1024,
totalBytes: 1024 * 1024,
hasError: true,
};