* Renabled building Storybook. * Explicitly added webpack style loaders for Storybook custom webpack config. * Upgraded Storybook configuration. * Added mixin/function to handle SASS compilation for Sprockets and Storybook's webpack. * Readded stylesheets/js required for crayons to run. * Added a custom title to Storybook. * Fixed custom Storybook CSS. * Migrated Search storybook stories. * Migrated crayons' box stories. * Migrated crayons' modal stories. * Migrated crayons' button stories. * Changed title a bit until we get a logo. * Migrated crayons' notice stories. * Migrated crayons' dropdown stories. * Migrated crayons' indicator stories. * Migrated crayons' typography stories. * Migrated crayons' form element stories. * Migrated crayons' navigation stories. * Migrated crayons' avatar & logo stories. * Migrated fatured article stories. * Migrated article loading stories. * Migrated today's podcast episodes stories. * Migrated podcast episode stories. * Migrated rest of article stories. * Update app/javascript/.storybook/manager.js Co-Authored-By: rhymes <rhymesete@gmail.com> * Commented new SASS function and mixin. Co-authored-by: rhymes <rhymesete@gmail.com>
23 lines
538 B
JavaScript
23 lines
538 B
JavaScript
import { h } from 'preact';
|
|
import { LoadingArticle } from '..';
|
|
import '../../../assets/stylesheets/articles.scss';
|
|
import { articleDecorator } from './articleDecorator';
|
|
|
|
export default {
|
|
title: 'App Components/Article',
|
|
decorators: [articleDecorator],
|
|
};
|
|
|
|
export const ArticleLoading = () => <LoadingArticle />;
|
|
|
|
ArticleLoading.story = {
|
|
name: 'article loading',
|
|
};
|
|
|
|
export const FeaturedArticleLoading = () => (
|
|
<LoadingArticle version="featured" />
|
|
);
|
|
|
|
FeaturedArticleLoading.story = {
|
|
name: 'featured article loading',
|
|
};
|