OperationCode/front-end

View on GitHub
components/SuccessStory/__stories__/SuccessStory.stories.tsx

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
import { Meta, StoryObj } from '@storybook/react';
import { descriptions } from 'common/constants/descriptions';
import { s3 } from 'common/constants/urls';
import SuccessStory from '../SuccessStory';

type SuccessStoryType = StoryObj<typeof SuccessStory>;

const meta: Meta<typeof SuccessStory> = {
  title: 'SuccesStory',
  component: SuccessStory,
  args: {
    title: 'Name of Person',
    imageSource: `${s3}headshots/david_molina.jpg`,
    quote: descriptions.long,
  },
};

export default meta;

export const Default: SuccessStoryType = {
  render: args => <SuccessStory {...args} />,
};