Skip to content

Commit

Permalink
feat: library now uses react-jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
maraisr committed Aug 25, 2022
1 parent 03c04ae commit b546b17
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 12 deletions.
1 change: 0 additions & 1 deletion example/Example.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Meta, Story } from '@storybook/react';
import * as React from 'react';

const ComponentTest = () => (
<div
Expand Down
4 changes: 4 additions & 0 deletions example/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": ["**/*"]
}
2 changes: 0 additions & 2 deletions src/components/Columns.svg.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import * as React from 'react';

export const Columns = (
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down
1 change: 0 additions & 1 deletion src/components/Grids.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
} from '@storybook/theming';
import { ContinuousContainer } from '@theuiteam/continuous-container';
import type { FunctionComponent } from 'react';
import * as React from 'react';
import { memo, useMemo } from 'react';
import { createPortal } from 'react-dom';
import type { AddonParameters, AddonState, GridParameters } from '../../index';
Expand Down
1 change: 0 additions & 1 deletion src/components/Tools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
} from '@storybook/api/shortcut';
import { IconButton } from '@storybook/components';
import { PREVIEW_KEYDOWN } from '@storybook/core-events';
import * as React from 'react';
import { useCallback, useEffect } from 'react';
import type { AddonParameters, AddonState } from '../../index';
import { ADDON_ID, PARAM_KEY } from '../constants';
Expand Down
1 change: 0 additions & 1 deletion src/register.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import addons, { types } from '@storybook/addons';
import * as React from 'react';
import { Tools } from './components/Tools';
import { ADDON_ID, PARAM_KEY } from './constants';

Expand Down
11 changes: 5 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"extends": "@marais/tsconfig",
"compilerOptions": {
"jsx": "react",
"rootDir": "./",
"outDir": "dist",
"target": "ES2019",
"declaration": true,
"jsx": "react-jsx",
"noEmit": true,
"declaration": false,
"removeComments": false,
"lib": ["DOM", "ESNext"]
"lib": ["DOM", "ESNext"],
"baseUrl": "."
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["node_modules"]
Expand Down

0 comments on commit b546b17

Please sign in to comment.