Skip to content

Commit eae7db3

Browse files
committed
fix: random stuffs
1 parent ea8a15c commit eae7db3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

.storybook/preview.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// eslint-disable-next-line import/no-unresolved
2-
import { INITIAL_VIEWPORTS } from 'storybook/viewport';
3-
41
import { customUserAgents } from './userAgent.ts';
52

63
import type { Preview, Decorator } from '@storybook/react';
@@ -23,12 +20,11 @@ export const globalTypes = {
2320
},
2421
};
2522

26-
function applyUserAgent(ua?: string) {
23+
const applyUserAgent = (ua?: string) =>
2724
Object.defineProperty(window.navigator, 'userAgent', {
2825
configurable: true,
2926
get: () => ua,
3027
});
31-
}
3228

3329
export const decorators: Decorator[] = [
3430
(Story, context) => {
@@ -51,9 +47,6 @@ const preview: Preview = {
5147
order: ['components', ['pwa-prompt', 'prompt']],
5248
},
5349
},
54-
viewport: {
55-
options: INITIAL_VIEWPORTS,
56-
},
5750
},
5851
initialGlobals: {
5952
backgrounds: { value: 'dark' },

0 commit comments

Comments
 (0)