This commit is contained in:
Valerie Pomerleau 2024-07-22 10:01:38 -07:00
Родитель dacbe443c8
Коммит f78ab6822d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 33A451F0BB2180B4
3 изменённых файлов: 6 добавлений и 16 удалений

Просмотреть файл

@ -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 }