Skip to content

Commit 01da4ce

Browse files
committed
refactor: use @mui/material
1 parent 5d2690d commit 01da4ce

File tree

4 files changed

+482
-62
lines changed

4 files changed

+482
-62
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@
2525
"prepublishOnly": "npm run build"
2626
},
2727
"dependencies": {
28+
"@emotion/react": "^11.10.0",
29+
"@emotion/styled": "^11.10.0",
30+
"@mui/material": "^5.10.0",
2831
"events": "^3.3.0",
2932
"flux": "^4.0.3",
3033
"react-base16-styling": "^0.9.1",
31-
"react-lifecycles-compat": "^3.0.4",
32-
"react-textarea-autosize": "^8.3.4"
34+
"react-lifecycles-compat": "^3.0.4"
3335
},
3436
"peerDependencies": {
3537
"react": "^18.2.0",

src/components/VariableEditor.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import AutosizeTextarea from 'react-textarea-autosize';
2+
import TextareaAutosize from '@mui/material/TextareaAutosize';
33

44
import { toType } from './../helpers/util';
55
import dispatcher from './../helpers/dispatcher';
@@ -258,7 +258,7 @@ class VariableEditor extends React.PureComponent {
258258

259259
return (
260260
<div>
261-
<AutosizeTextarea
261+
<TextareaAutosize
262262
type="text"
263263
inputRef={input => input && input.focus()}
264264
value={editValue}

tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
"baseUrl": "./src",
77
"outDir": "dist",
88
"declaration": false,
9-
"declarationMap": false,
10-
"jsx": "react-jsx",
11-
"jsxImportSource": "react"
9+
"declarationMap": false
1210
},
1311
"include": [
1412
"src/**/*",

0 commit comments

Comments
 (0)