wwf
3 天以前 a430284aa21e3ae1f0d5654e55b2ad2852519cc2
.storybook/preview.tsx
@@ -1,6 +1,6 @@
import React from 'react'
import type { Preview } from '@storybook/react'
import { withThemeByDataAttribute } from '@storybook/addon-themes'
import { withThemeByDataAttribute } from '@storybook/addon-themes';
import I18nServer from '../app/components/i18n-server'
import '../app/styles/globals.css'
@@ -16,12 +16,12 @@
    defaultTheme: 'light',
    attributeName: 'data-theme',
  }),
  (Story) => {
    Story => {
    return <I18nServer>
      <Story />
    </I18nServer>
  },
]
    }
  ];
const preview: Preview = {
  parameters: {