From 70755cc9c8e886d872a557e6a6a41e7a93040276 Mon Sep 17 00:00:00 2001 From: Ken Chu Date: Wed, 23 Feb 2022 17:17:26 +0800 Subject: [PATCH] EDITOR-#146 FrameList Error rendering on production. (React is not defined) --- editor/components/FrameList/index.tsx | 11 ----- editor/package.json | 1 - editor/yarn.lock | 61 +-------------------------- 3 files changed, 1 insertion(+), 72 deletions(-) diff --git a/editor/components/FrameList/index.tsx b/editor/components/FrameList/index.tsx index 8ed3364dc..751a760c4 100644 --- a/editor/components/FrameList/index.tsx +++ b/editor/components/FrameList/index.tsx @@ -1,4 +1,3 @@ -import Scrollbars from "react-custom-scrollbars"; // mui import { makeStyles } from "@material-ui/core/styles"; import List from "@mui/material/List"; @@ -37,20 +36,11 @@ export default function FrameList() { // styles const classes = useStyles(); - // scroll bar config - const renderThumb = ({ style, ...props }) => { - const thumbStyle = { - borderRadius: 6, - backgroundColor: "rgba(192,192,200, 0.5)", - }; - return
; - }; if (loading) return "loading..."; return (
- {record.map((id: string, idx: number) => ( ))} -
); diff --git a/editor/package.json b/editor/package.json index 09471bd01..efb5f9bc1 100644 --- a/editor/package.json +++ b/editor/package.json @@ -38,7 +38,6 @@ "prop-types": "^15.7.2", "react": "^17.0.1", "react-colorful": "^5.5.1", - "react-custom-scrollbars": "^4.2.1", "react-dom": "^17.0.1", "react-hot-loader": "^4.13.0", "react-hotkeys-hook": "^3.4.4", diff --git a/editor/yarn.lock b/editor/yarn.lock index 71e5290da..142f7c391 100644 --- a/editor/yarn.lock +++ b/editor/yarn.lock @@ -1237,11 +1237,6 @@ abbrev@1: resolved "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz" integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== -add-px-to-style@1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/add-px-to-style/-/add-px-to-style-1.0.0.tgz" - integrity sha1-0ME1RB+oAUqBN5BFMQlvZ/KPJjo= - ajv-keywords@^3.5.2: version "3.5.2" resolved "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz" @@ -1618,15 +1613,6 @@ dequal@^2.0.2: resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.2.tgz#85ca22025e3a87e65ef75a7a437b35284a7e319d" integrity sha512-q9K8BlJVxK7hQYqa6XISGmBZbtQQWVXSrRrWreHC94rMt1QL/Impruc+7p2CYSYuVIUr+YCt6hjrs1kkdJRTug== -dom-css@^2.0.0: - version "2.1.0" - resolved "https://registry.npmjs.org/dom-css/-/dom-css-2.1.0.tgz" - integrity sha1-/bwtWgFdCj4YcuEUcrvQ57nmogI= - dependencies: - add-px-to-style "1.0.0" - prefix-style "2.0.1" - to-camel-case "1.0.0" - dom-helpers@^5.0.1: version "5.2.1" resolved "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz" @@ -2566,11 +2552,6 @@ path-type@^4.0.0: resolved "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz" integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== -performance-now@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz" - integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= - picocolors@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz" @@ -2681,11 +2662,6 @@ postcss@^8.2.15, postcss@^8.4.5: picocolors "^1.0.0" source-map-js "^1.0.1" -prefix-style@2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/prefix-style/-/prefix-style-2.0.1.tgz" - integrity sha1-ZrupqHDP2jCKXcIOhekSCTLJWgY= - prepend-http@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz" @@ -2706,7 +2682,7 @@ process@^0.11.10: resolved "https://registry.npmjs.org/process/-/process-0.11.10.tgz" integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI= -prop-types@15.x, prop-types@^15.5.10, prop-types@^15.6.0, prop-types@^15.6.1, prop-types@^15.6.2, prop-types@^15.7.2, prop-types@^15.8.1: +prop-types@15.x, prop-types@^15.6.0, prop-types@^15.6.1, prop-types@^15.6.2, prop-types@^15.7.2, prop-types@^15.8.1: version "15.8.1" resolved "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz" integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg== @@ -2750,13 +2726,6 @@ querystring@0.2.0: resolved "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz" integrity sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA= -raf@^3.1.0: - version "3.4.1" - resolved "https://registry.npmjs.org/raf/-/raf-3.4.1.tgz" - integrity sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA== - dependencies: - performance-now "^2.1.0" - rc@^1.2.8: version "1.2.8" resolved "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz" @@ -2772,15 +2741,6 @@ react-colorful@^5.5.1: resolved "https://registry.yarnpkg.com/react-colorful/-/react-colorful-5.5.1.tgz#29d9c4e496f2ca784dd2bb5053a3a4340cfaf784" integrity sha512-M1TJH2X3RXEt12sWkpa6hLc/bbYS0H6F4rIqjQZ+RxNBstpY67d9TrFXtqdZwhpmBXcCwEi7stKqFue3ZRkiOg== -react-custom-scrollbars@^4.2.1: - version "4.2.1" - resolved "https://registry.npmjs.org/react-custom-scrollbars/-/react-custom-scrollbars-4.2.1.tgz" - integrity sha1-gw/ZUCkn6X6KeMIIaBOJmyqLZts= - dependencies: - dom-css "^2.0.0" - prop-types "^15.5.10" - raf "^3.1.0" - react-dom@^17.0.1: version "17.0.2" resolved "https://registry.npmjs.org/react-dom/-/react-dom-17.0.2.tgz" @@ -3196,23 +3156,11 @@ tiny-warning@^1.0.2: resolved "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz" integrity sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA== -to-camel-case@1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/to-camel-case/-/to-camel-case-1.0.0.tgz" - integrity sha1-GlYFSy+daWKYzmamCJcyK29CPkY= - dependencies: - to-space-case "^1.0.0" - to-fast-properties@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz" integrity sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4= -to-no-case@^1.0.0: - version "1.0.2" - resolved "https://registry.npmjs.org/to-no-case/-/to-no-case-1.0.2.tgz" - integrity sha1-xyKQcWTvaxeBMsjmmTAhLRtKoWo= - to-readable-stream@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz" @@ -3225,13 +3173,6 @@ to-regex-range@^5.0.1: dependencies: is-number "^7.0.0" -to-space-case@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/to-space-case/-/to-space-case-1.0.0.tgz" - integrity sha1-sFLar7Gysp3HcM6gFj5ewOvJ/Bc= - dependencies: - to-no-case "^1.0.0" - touch@^3.1.0: version "3.1.0" resolved "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz"