Skip to content

Commit

Permalink
tsc fixes for storybook files
Browse files Browse the repository at this point in the history
  • Loading branch information
ajay-sentry committed Dec 9, 2024
1 parent 37141cd commit 41b3fb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .storybook/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import '../src/globals.css'

const Layout = ({ children }) => {
const Layout: React.FC<React.PropsWithChildren> = ({ children }) => {
return <div className="text-sm text-ds-primary-base">{children}</div>
}

Expand Down
4 changes: 2 additions & 2 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ export const parameters = {

const queryClient = new QueryClient()

const localStorageResetDecorator = (Story) => {
const localStorageResetDecorator = (Story: React.FC) => {
window.localStorage.clear()
return <Story />
}

export const decorators = [
localStorageResetDecorator,
(Story) => (
(Story: React.FC) => (
<QueryClientProvider client={queryClient}>
<Layout>
<Story />
Expand Down

0 comments on commit 41b3fb9

Please sign in to comment.