mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-02 14:21:05 +01:00
ICU book workflow
This commit is contained in:
@@ -4,18 +4,16 @@
|
||||
import React, { useState, useCallback, useEffect } from 'react';
|
||||
import type { Meta, StoryFn } from '@storybook/react';
|
||||
import { action } from '@storybook/addon-actions';
|
||||
import { setupI18n } from '../../util/setupI18n';
|
||||
import { sleep } from '../../util/sleep';
|
||||
import {
|
||||
InstallScreenBackupStep,
|
||||
InstallScreenBackupError,
|
||||
} from '../../types/InstallScreen';
|
||||
import { DialogType } from '../../types/Dialogs';
|
||||
import enMessages from '../../../_locales/en/messages.json';
|
||||
import type { PropsType } from './InstallScreenBackupImportStep';
|
||||
import { InstallScreenBackupImportStep } from './InstallScreenBackupImportStep';
|
||||
|
||||
const i18n = setupI18n('en', enMessages);
|
||||
const { i18n } = window.SignalContext;
|
||||
|
||||
const DEFAULT_UPDATES = {
|
||||
dialogType: DialogType.None,
|
||||
|
||||
@@ -4,13 +4,11 @@
|
||||
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 } from './InstallScreenErrorStep';
|
||||
|
||||
const i18n = setupI18n('en', enMessages);
|
||||
const { i18n } = window.SignalContext;
|
||||
|
||||
export default {
|
||||
title: 'Components/InstallScreen/InstallScreenErrorStep',
|
||||
|
||||
@@ -3,12 +3,10 @@
|
||||
|
||||
import React from 'react';
|
||||
import type { Meta } from '@storybook/react';
|
||||
import { setupI18n } from '../../util/setupI18n';
|
||||
import enMessages from '../../../_locales/en/messages.json';
|
||||
import type { Props } from './InstallScreenLinkInProgressStep';
|
||||
import { InstallScreenLinkInProgressStep } from './InstallScreenLinkInProgressStep';
|
||||
|
||||
const i18n = setupI18n('en', enMessages);
|
||||
const { i18n } = window.SignalContext;
|
||||
|
||||
export default {
|
||||
title: 'Components/InstallScreen/InstallScreenLinkInProgressStep',
|
||||
|
||||
@@ -4,16 +4,14 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { action } from '@storybook/addon-actions';
|
||||
import type { Meta, StoryFn } from '@storybook/react';
|
||||
import { setupI18n } from '../../util/setupI18n';
|
||||
import { DialogType } from '../../types/Dialogs';
|
||||
import { InstallScreenQRCodeError } from '../../types/InstallScreen';
|
||||
import enMessages from '../../../_locales/en/messages.json';
|
||||
import type { Loadable } from '../../util/loadable';
|
||||
import { LoadingState } from '../../util/loadable';
|
||||
import type { PropsType } from './InstallScreenQrCodeNotScannedStep';
|
||||
import { InstallScreenQrCodeNotScannedStep } from './InstallScreenQrCodeNotScannedStep';
|
||||
|
||||
const i18n = setupI18n('en', enMessages);
|
||||
const { i18n } = window.SignalContext;
|
||||
|
||||
const LOADED_URL = {
|
||||
loadingState: LoadingState.Loaded as const,
|
||||
|
||||
Reference in New Issue
Block a user