fix: storybook with typescript (#2926)

* fix storybook for typescript

* fix babel
This commit is contained in:
Alireza authored and GitHub committed 2022-09-13 08:57:22 -04:00
1 parent 1b30ff83a5
commit f9449e97df
38 files changed
+153 -130

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ for each color.
Therefore you can use the className to style the color of a component (using
`bg-${color-class}`) or text (using `text-${color-class}`).
```jsx
```tsx
<div className="bg-primary-main text-primary-light">OHIF UI Components</div>
```
@@ -66,8 +66,8 @@ error. Always check the code block when you get an error.
For instance the following code block will generate the error (notice the extra
vertical space in the code block):
```jsx
export const TooltipTemplate = (args) => (
```tsx
export const TooltipTemplate = args => (
<div className="h-16 w-full">
<div class="w-8 h-8 mx-auto">
<Tooltip {...args}>
@@ -91,7 +91,7 @@ stories with the same name, it will cause an error.
The following code block will generate an error:
```jsx
```tsx
<Canvas>
<Story name="Variants">
<Typography variant="h1" color="initial">