Fix storybook errors

This commit is contained in:
Gabe Kangas
2023-01-10 00:58:39 -08:00
parent 6f6b9bcda8
commit 85dc3bf21e
5 changed files with 5 additions and 4 deletions

View File

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

View File

@@ -1,5 +1,5 @@
import { Canvas, Meta, Story } from '@storybook/addon-docs'; 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" /> <Meta title="owncast/Style Guide/Default Theme" />

View File

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

View File

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

View File

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