Rename preview.js to preview.ts to use storybook v7 Preview

develop
Jason Zhu 2023-05-15 19:48:08 +10:00
parent 42a4a86e34
commit 3eb8eb836e
2 changed files with 7 additions and 11 deletions

View File

@ -1,11 +0,0 @@
import 'index.css';
export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
};

View File

@ -0,0 +1,7 @@
import 'index.css';
import { Preview } from '@storybook/react';
const preview: Preview = {};
export default preview;