Username Education
Co-authored-by: Jamie Kyle <jamie@signal.org>
This commit is contained in:
parent
c6a7637513
commit
7dc11c1928
100 changed files with 1443 additions and 1269 deletions
32
ts/components/UsernameOnboardingModal.stories.tsx
Normal file
32
ts/components/UsernameOnboardingModal.stories.tsx
Normal file
|
@ -0,0 +1,32 @@
|
|||
// Copyright 2023 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import React from 'react';
|
||||
import type { Meta, StoryFn } from '@storybook/react';
|
||||
|
||||
import { action } from '@storybook/addon-actions';
|
||||
import enMessages from '../../_locales/en/messages.json';
|
||||
import { setupI18n } from '../util/setupI18n';
|
||||
|
||||
import type { PropsType } from './UsernameOnboardingModal';
|
||||
import { UsernameOnboardingModal } from './UsernameOnboardingModal';
|
||||
|
||||
const i18n = setupI18n('en', enMessages);
|
||||
|
||||
export default {
|
||||
component: UsernameOnboardingModal,
|
||||
title: 'Components/UsernameOnboardingModal',
|
||||
args: {
|
||||
i18n,
|
||||
onNext: action('onNext'),
|
||||
onSkip: action('onSkip'),
|
||||
onClose: action('onClose'),
|
||||
},
|
||||
} satisfies Meta<PropsType>;
|
||||
|
||||
// eslint-disable-next-line react/function-component-definition
|
||||
const Template: StoryFn<PropsType> = args => {
|
||||
return <UsernameOnboardingModal {...args} />;
|
||||
};
|
||||
|
||||
export const Normal = Template.bind({});
|
Loading…
Add table
Add a link
Reference in a new issue