mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 17:41:48 +08:00
Remove unused viewport and backgrounds configurations from preview.ts to simplify story parameters.
This commit is contained in:
parent
78f6b56e12
commit
585b6d642e
@ -3,8 +3,6 @@ import type { PartialStoryFn, StoryContext } from 'storybook/internal/types';
|
||||
|
||||
import type { ReactRenderer } from '@storybook/react';
|
||||
|
||||
import { MINIMAL_VIEWPORTS } from 'storybook/viewport';
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
__STORYBOOK_BEFORE_ALL_CALLS__: number;
|
||||
@ -30,18 +28,6 @@ export const parameters = {
|
||||
b: 'project',
|
||||
c: 'project',
|
||||
},
|
||||
|
||||
viewport: {
|
||||
options: MINIMAL_VIEWPORTS,
|
||||
},
|
||||
|
||||
backgrounds: {
|
||||
disable: false,
|
||||
options: {
|
||||
light: { name: 'light', value: '#F8F8F8' },
|
||||
dark: { name: 'dark', value: '#333' },
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const loaders = [async () => ({ projectValue: 2 })];
|
||||
@ -62,11 +48,6 @@ export const initialGlobals = {
|
||||
|
||||
sb_theme: 'light',
|
||||
locale: 'en',
|
||||
|
||||
viewport: {
|
||||
value: undefined,
|
||||
isRotated: false,
|
||||
},
|
||||
};
|
||||
|
||||
export const globalTypes = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user