diff --git a/web/components/admin/Color.tsx b/web/.storybook/stories-category-doc-pages/Color.tsx similarity index 98% rename from web/components/admin/Color.tsx rename to web/.storybook/stories-category-doc-pages/Color.tsx index ce1b8fddb..0924bb84c 100644 --- a/web/components/admin/Color.tsx +++ b/web/.storybook/stories-category-doc-pages/Color.tsx @@ -1,4 +1,5 @@ import PropTypes from 'prop-types'; +import React from 'react'; import { FC } from 'react'; export type ColorProps = { diff --git a/web/.storybook/stories-category-doc-pages/Colors.stories.mdx b/web/.storybook/stories-category-doc-pages/Colors.stories.mdx index d76ac31ab..0d52a5712 100644 --- a/web/.storybook/stories-category-doc-pages/Colors.stories.mdx +++ b/web/.storybook/stories-category-doc-pages/Colors.stories.mdx @@ -1,5 +1,5 @@ import { Canvas, Meta, Story } from '@storybook/addon-docs'; -import { Color, ColorRow } from '../../components/Color'; +import { ColorRow } from './Color'; diff --git a/web/components/admin/ImageAsset.tsx b/web/.storybook/stories-category-doc-pages/ImageAsset.tsx similarity index 98% rename from web/components/admin/ImageAsset.tsx rename to web/.storybook/stories-category-doc-pages/ImageAsset.tsx index 1f57381ca..c24be8f07 100644 --- a/web/components/admin/ImageAsset.tsx +++ b/web/.storybook/stories-category-doc-pages/ImageAsset.tsx @@ -1,3 +1,4 @@ +import React from 'react'; import { FC } from 'react'; export type ImageAssetProps = { diff --git a/web/.storybook/stories-category-doc-pages/Images.stories.mdx b/web/.storybook/stories-category-doc-pages/Images.stories.mdx index 47e61eb01..c82f6aed2 100644 --- a/web/.storybook/stories-category-doc-pages/Images.stories.mdx +++ b/web/.storybook/stories-category-doc-pages/Images.stories.mdx @@ -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 = [ ## TODO: Determine the icon style/images for v2 of the web UI. - ## App Icons diff --git a/web/next.config.js b/web/next.config.js index e2e484afd..c6c3f7ecd 100644 --- a/web/next.config.js +++ b/web/next.config.js @@ -11,7 +11,7 @@ module.exports = withBundleAnalyzer( images: { unoptimized: true, }, - swcMinify: false, + swcMinify: true, webpack(config) { config.module.rules.push({ test: /\.svg$/i,