Make backup import UI part of install

This commit is contained in:
Fedor Indutny
2024-09-03 19:56:13 -07:00
committed by GitHub
parent 6bd9502f5c
commit ee0090bb84
26 changed files with 829 additions and 596 deletions

View File

@@ -5,9 +5,10 @@ import React from 'react';
import { action } from '@storybook/addon-actions';
import type { Meta } from '@storybook/react';
import { setupI18n } from '../../util/setupI18n';
import { InstallScreenError } from '../../types/InstallScreen';
import enMessages from '../../../_locales/en/messages.json';
import type { Props } from './InstallScreenErrorStep';
import { InstallScreenErrorStep, InstallError } from './InstallScreenErrorStep';
import { InstallScreenErrorStep } from './InstallScreenErrorStep';
const i18n = setupI18n('en', enMessages);
@@ -24,21 +25,21 @@ const defaultProps = {
export const _TooManyDevices = (): JSX.Element => (
<InstallScreenErrorStep
{...defaultProps}
error={InstallError.TooManyDevices}
error={InstallScreenError.TooManyDevices}
/>
);
export const _TooOld = (): JSX.Element => (
<InstallScreenErrorStep {...defaultProps} error={InstallError.TooOld} />
<InstallScreenErrorStep {...defaultProps} error={InstallScreenError.TooOld} />
);
export const __TooOld = (): JSX.Element => (
<InstallScreenErrorStep {...defaultProps} error={InstallError.TooOld} />
<InstallScreenErrorStep {...defaultProps} error={InstallScreenError.TooOld} />
);
export const _ConnectionFailed = (): JSX.Element => (
<InstallScreenErrorStep
{...defaultProps}
error={InstallError.ConnectionFailed}
error={InstallScreenError.ConnectionFailed}
/>
);