Files
Desktop/ts/components/About.dom.stories.tsx
Jamie b405e3d83d Prepare for upgrade to React 19
Co-authored-by: ayumi-signal <ayumi@signal.org>
2025-12-23 13:42:56 -08:00

35 lines
824 B
TypeScript

// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import React from 'react';
import { action } from '@storybook/addon-actions';
import type { ComponentMeta } from '../storybook/types.std.js';
import type { AboutProps } from './About.dom.js';
import { About } from './About.dom.js';
const { i18n } = window.SignalContext;
export default {
title: 'Components/About',
component: About,
parameters: {
layout: 'fullscreen',
},
args: {
i18n,
closeAbout: action('showWhatsNewModal'),
appEnv: 'production',
platform: 'darwin',
arch: 'arm64',
version: '1.2.3',
},
} satisfies ComponentMeta<AboutProps>;
export function Basic(args: AboutProps): React.JSX.Element {
return (
<div style={{ height: '100vh' }}>
<About {...args} />
</div>
);
}