Browse Source

Fix storybook errors

pull/2555/head
Gabe Kangas 4 years ago
parent
commit
85dc3bf21e
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 1
      web/.storybook/stories-category-doc-pages/Color.tsx
  2. 2
      web/.storybook/stories-category-doc-pages/Colors.stories.mdx
  3. 1
      web/.storybook/stories-category-doc-pages/ImageAsset.tsx
  4. 3
      web/.storybook/stories-category-doc-pages/Images.stories.mdx
  5. 2
      web/next.config.js

1
web/components/admin/Color.tsx → web/.storybook/stories-category-doc-pages/Color.tsx

@ -1,4 +1,5 @@ @@ -1,4 +1,5 @@
import PropTypes from 'prop-types';
import React from 'react';
import { FC } from 'react';
export type ColorProps = {

2
web/.storybook/stories-category-doc-pages/Colors.stories.mdx

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
import { Canvas, Meta, Story } from '@storybook/addon-docs';
import { Color, ColorRow } from '../../components/Color';
import { ColorRow } from './Color';
<Meta title="owncast/Style Guide/Default Theme" />

1
web/components/admin/ImageAsset.tsx → web/.storybook/stories-category-doc-pages/ImageAsset.tsx

@ -1,3 +1,4 @@ @@ -1,3 +1,4 @@
import React from 'react';
import { FC } from 'react';
export type ImageAssetProps = {

3
web/.storybook/stories-category-doc-pages/Images.stories.mdx

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
import { Canvas, Meta, Story } from '@storybook/addon-docs';
import { Image, ImageRow } from '../../components/ImageAsset';
import { Image, ImageRow } from './ImageAsset';
import Logo from '../../assets/images/logo.svg';
import FediverseColor from '../../assets/images/fediverse-color.png';
@ -21,7 +21,6 @@ export const images = [ @@ -21,7 +21,6 @@ export const images = [
## TODO: Determine the icon style/images for v2 of the web UI.
<ImageRow images={images} />
## App Icons

2
web/next.config.js

@ -11,7 +11,7 @@ module.exports = withBundleAnalyzer( @@ -11,7 +11,7 @@ module.exports = withBundleAnalyzer(
images: {
unoptimized: true,
},
swcMinify: false,
swcMinify: true,
webpack(config) {
config.module.rules.push({
test: /\.svg$/i,

Loading…
Cancel
Save