Skip to content

Commit 4fa22c1

Browse files
jingyuwewoor
authored andcommitted
fix: modify the style import mode and update dt-react-component
1 parent f9009d0 commit 4fa22c1

File tree

4 files changed

+1441
-542
lines changed

4 files changed

+1441
-542
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@
9595
"commitizen": "^4.0.3",
9696
"css-loader": "^3.1.0",
9797
"cz-conventional-changelog": "^3.0.2",
98-
"dt-react-component": "^1.2.0",
98+
"dt-react-component": "^2.0.9",
99+
"babel-plugin-treasure": "^0.9.0",
99100
"enzyme": "^3.11.0",
100101
"enzyme-adapter-react-16": "^1.15.2",
101102
"eslint": "^7.4.0",

src/codemirror/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import './languages/simpleLog';
88
import 'codemirror/lib/codemirror.css'
99
import 'codemirror/addon/lint/lint.css'
1010
import 'codemirror/addon/scroll/simplescrollbars.css'
11-
import './style'
1211
import { getLinkMark, getLogMark } from './utils'
1312

1413
require('codemirror/mode/sql/sql')

stories/index.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from 'react';
22
import { storiesOf } from '@storybook/react';
33
import { MarkdownRender } from 'dt-react-component';
44

5-
import 'dt-react-component/lib/index.css'
5+
import '../lib/codemirror/style.css'
66

77
import './style.scss';
88
import { notShowProps } from './utils';

0 commit comments

Comments
 (0)