File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 1
- // eslint-disable-next-line import/no-unresolved
2
- import { INITIAL_VIEWPORTS } from 'storybook/viewport' ;
3
-
4
1
import { customUserAgents } from './userAgent.ts' ;
5
2
6
3
import type { Preview , Decorator } from '@storybook/react' ;
@@ -23,12 +20,11 @@ export const globalTypes = {
23
20
} ,
24
21
} ;
25
22
26
- function applyUserAgent ( ua ?: string ) {
23
+ const applyUserAgent = ( ua ?: string ) =>
27
24
Object . defineProperty ( window . navigator , 'userAgent' , {
28
25
configurable : true ,
29
26
get : ( ) => ua ,
30
27
} ) ;
31
- }
32
28
33
29
export const decorators : Decorator [ ] = [
34
30
( Story , context ) => {
@@ -51,9 +47,6 @@ const preview: Preview = {
51
47
order : [ 'components' , [ 'pwa-prompt' , 'prompt' ] ] ,
52
48
} ,
53
49
} ,
54
- viewport : {
55
- options : INITIAL_VIEWPORTS ,
56
- } ,
57
50
} ,
58
51
initialGlobals : {
59
52
backgrounds : { value : 'dark' } ,
You can’t perform that action at this time.
0 commit comments