mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-28 11:15:43 +08:00
* Storybook setup Storybook can be started using `npm run storybook` * moved files and bugfix Moved component files into their own directory and moved stories next to them. Fixed a bug with loading images * prettier and bugfix * prettier and bugfix * Absolute Import in Header.tsx * import fix some imports did not work after merging * Storybook update for chakra ui to properly work * Prettier main.js * comment in preview.js about hacky solution * webpack final update and prettier update to preview * Updated website/readme to include storybook description * prettier... * Delete docker-compose 2.yaml
23 lines
613 B
JavaScript
23 lines
613 B
JavaScript
import "!style-loader!css-loader!postcss-loader!tailwindcss/tailwind.css";
|
|
|
|
export const parameters = {
|
|
actions: { argTypesRegex: "^on[A-Z].*" },
|
|
controls: {
|
|
matchers: {
|
|
color: /(background|color)$/i,
|
|
date: /Date$/,
|
|
},
|
|
},
|
|
};
|
|
|
|
// Hacky solution to get Images in next to work
|
|
// https://dev.to/jonasmerlin/how-to-use-the-next-js-image-component-in-storybook-1415
|
|
import * as NextImage from "next/image";
|
|
|
|
const OriginalNextImage = NextImage.default;
|
|
|
|
Object.defineProperty(NextImage, "default", {
|
|
configurable: true,
|
|
value: (props) => <OriginalNextImage {...props} unoptimized />,
|
|
});
|