Fix storybook errors
This commit is contained in:
@@ -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 = {
|
||||||
@@ -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" />
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import React from 'react';
|
||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
|
|
||||||
export type ImageAssetProps = {
|
export type ImageAssetProps = {
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user