Skip to content

Commit

Permalink
chore: import react to avoid UMD typescript warning
Browse files Browse the repository at this point in the history
  • Loading branch information
g-saracca committed Oct 16, 2024
1 parent 614a6c2 commit 28e652f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
1 change: 1 addition & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react'
import type { Preview } from '@storybook/react'
import { ThemeProvider } from '@iqss/dataverse-design-system'
import { createBrowserRouter, RouteObject, RouterProvider } from 'react-router-dom'
Expand Down
1 change: 1 addition & 0 deletions packages/design-system/.storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react'
import type { Preview } from '@storybook/react'
import { ThemeProvider } from '../src/lib/components/theme/ThemeProvider'
import DocumentationTemplate from '../src/lib/stories/DocumentationTemplate.mdx'
Expand Down
9 changes: 1 addition & 8 deletions packages/design-system/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@
"noEmit": true,
"jsx": "react-jsx"
},
"include": [
"src",
"tests",
"vite.config.ts",
"cypress.config.ts",
".storybook/test-runner.ts",
".storybook/*.tsx"
],
"include": ["src", "tests", "vite.config.ts", "cypress.config.ts", ".storybook/test-runner.ts"],
"exclude": ["tests/**/**.spec.ts", "tests/**/**.spec.tsx"]
}
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
"cypress.config.ts",
"vite.config.ts",
"packages/design-system/src/",
"public",
".storybook/*.tsx"
"public"
],
"exclude": ["tests/**/**.spec.ts", "tests/**/**.spec.tsx"]
}

0 comments on commit 28e652f

Please sign in to comment.