intraxia/wp-gistpen

View on GitHub
client/components/EditPage/__stories__/Description.stories.tsx

Summary

Maintainability
A
1 hr
Test Coverage
import { storiesOf } from '@storybook/react';
import React from 'react';
import Description from '../Description';

storiesOf('Description', module)
  .add('without text - not loading', () => (
    <Description
      {...{
        description: '',
        loading: false,
      }}
    />
  ))
  .add('with text - not loading', () => (
    <Description
      {...{
        description: 'New Repo',
        loading: false,
      }}
    />
  ))
  .add('with text - loading', () => (
    <Description
      {...{
        description: 'New Repo',
        loading: true,
      }}
    />
  ));