diff --git a/packages/storybook/.storybook/webpack.config.js b/packages/storybook/.storybook/webpack.config.js
index 6ba13d8cb7..a7c8fad071 100644
--- a/packages/storybook/.storybook/webpack.config.js
+++ b/packages/storybook/.storybook/webpack.config.js
@@ -24,20 +24,17 @@ module.exports = {
},
{
test: /\.stories.tsx?$/,
- use: [
- {
- loader: require.resolve('@storybook/source-loader'),
- }
- ],
- enforce: 'pre',
- include: path.resolve(__dirname, '../stories')
+ use: [{ loader: '@storybook/source-loader' }],
+ enforce: 'pre',
+ include: path.resolve(__dirname, '../stories')
},
{
test: /\.tsx?$/,
use: [{
loader: 'ts-loader',
options: {
- transpileOnly: true,
+ transpileOnly: false,
+ ignoreDiagnostics: [7005]
}
}],
},
diff --git a/packages/storybook/stories/buttons/add-button.stories.tsx b/packages/storybook/stories/buttons/add-button.stories.tsx
index dad705e727..87d40d4983 100644
--- a/packages/storybook/stories/buttons/add-button.stories.tsx
+++ b/packages/storybook/stories/buttons/add-button.stories.tsx
@@ -1,8 +1,5 @@
-import React from 'react';
-
import { AddButton } from '@equisoft/design-elements-react';
-
-type ButtonType = 'primary' | 'secondary' | 'tertiary';
+import React from 'react';
export default {
title: 'Buttons/Add',
@@ -10,50 +7,48 @@ export default {
};
export const addButtons = () => (
-
+ >
);
export const disabled = () => (
-
+ >
);
export const eventCallback = () => (
-
-
{ console.log('The button has been clicked!'); }}
- disabled={false}
- />
-
+ { console.log('The button has been clicked!'); }}
+ disabled={false}
+ />
);
diff --git a/packages/storybook/stories/buttons/buttons.stories.tsx b/packages/storybook/stories/buttons/buttons.stories.tsx
index 2b1913e20f..7f4254740c 100644
--- a/packages/storybook/stories/buttons/buttons.stories.tsx
+++ b/packages/storybook/stories/buttons/buttons.stories.tsx
@@ -1,8 +1,5 @@
-import React from 'react';
-
import { Button } from '@equisoft/design-elements-react';
-
-type ButtonType = 'primary' | 'secondary' | 'tertiary';
+import React from 'react';
export default {
title: 'Buttons',
@@ -10,26 +7,24 @@ export default {
};
export const buttons = () => (
-
-
-
-
-
+ <>
+
+
+
+ >
);
export const disabled = () => (
-
-
-
-
-
+ <>
+
+
+
+ >
);
export const eventCallback = () => (
-
-
+