Skip to content

Commit

Permalink
Fixing Storybook / Gtag Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jedialkimiya committed Mar 12, 2023
1 parent be273fb commit d303be4
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react'
import { ThemeProvider } from '@material-ui/core/styles'
import theme from 'src/utils/theme'
import CssBaseline from '@material-ui/core/CssBaseline'
import { install } from 'ga-gtag'

import '@fontsource/poppins/300.css'
import '@fontsource/poppins/400.css'
Expand All @@ -24,11 +25,14 @@ export const parameters = {
}

export const decorators = [
(Story) => (
<ThemeProvider theme={theme}>
<CssBaseline>
<Story />
</CssBaseline>
</ThemeProvider>
),
(Story) => {
install('G-LDFLQCKVHG')
return (
<ThemeProvider theme={theme}>
<CssBaseline>
<Story />
</CssBaseline>
</ThemeProvider>
)
},
]

0 comments on commit d303be4

Please sign in to comment.