mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-20 08:28:17 +01:00
Make backup import UI part of install
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user