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