Skip to content

Commit

Permalink
export globals const instead of default
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Oct 27, 2023
1 parent a8cda8d commit 031534f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions code/addons/themes/src/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import type { Renderer, ProjectAnnotations } from '@storybook/types';
import { GLOBAL_KEY } from './constants';

const preview: ProjectAnnotations<Renderer> = {
globals: {
// Required to make sure SB picks this up from URL params
[GLOBAL_KEY]: '',
},
export const globals: ProjectAnnotations<Renderer>['globals'] = {
// Required to make sure SB picks this up from URL params
[GLOBAL_KEY]: '',
};

export default preview;

0 comments on commit 031534f

Please sign in to comment.