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