зеркало из https://github.com/mozilla/fxa.git
fix brand messaging storybook
This commit is contained in:
Родитель
dacbe443c8
Коммит
f78ab6822d
|
@ -5,29 +5,18 @@
|
|||
import React from 'react';
|
||||
import { Meta } from '@storybook/react';
|
||||
import { withLocalization } from 'fxa-react/lib/storybooks';
|
||||
import { BrandMessagingPortal } from '.';
|
||||
import { MockSettingsAppLayout } from '../Settings/AppLayout/mocks';
|
||||
import { BrandMessaging } from '.';
|
||||
|
||||
export default {
|
||||
title: 'Components/BrandMessaging',
|
||||
component: BrandMessagingPortal,
|
||||
component: BrandMessaging,
|
||||
decorators: [withLocalization],
|
||||
} as Meta;
|
||||
|
||||
export const NoLaunch = () => (
|
||||
<MockSettingsAppLayout>
|
||||
<BrandMessagingPortal viewName="storybook" />
|
||||
</MockSettingsAppLayout>
|
||||
);
|
||||
|
||||
export const PreLaunch = () => (
|
||||
<MockSettingsAppLayout>
|
||||
<BrandMessagingPortal mode="prelaunch" viewName="storybook" />
|
||||
</MockSettingsAppLayout>
|
||||
<BrandMessaging mode="prelaunch" viewName="storybook" />
|
||||
);
|
||||
|
||||
export const PostLaunch = () => (
|
||||
<MockSettingsAppLayout>
|
||||
<BrandMessagingPortal mode="postlaunch" viewName="storybook" />
|
||||
</MockSettingsAppLayout>
|
||||
<BrandMessaging mode="postlaunch" viewName="storybook" />
|
||||
);
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
import React from 'react';
|
||||
import AppLayout from '.';
|
||||
import { createMockSettingsIntegration } from '../mocks';
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ declare module '*.webp' {
|
|||
}
|
||||
|
||||
declare module '*.svg' {
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
|
||||
export const ReactComponent: React.FunctionComponent<
|
||||
React.SVGProps<SVGSVGElement> & { title?: string }
|
||||
|
|
Загрузка…
Ссылка в новой задаче