Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EDITOR-#146 FrameList Error rendering on production. (React is not defined) #147

Merged
merged 1 commit into from
Feb 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions editor/components/FrameList/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Scrollbars from "react-custom-scrollbars";
// mui
import { makeStyles } from "@material-ui/core/styles";
import List from "@mui/material/List";
Expand Down Expand Up @@ -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 <div style={{ ...style, ...thumbStyle }} {...props} />;
};

if (loading) return "loading...";
return (
<div className={classes.root}>
<div className={classes.grow}>
<Scrollbars renderThumbVertical={renderThumb}>
<List component="nav">
{record.map((id: string, idx: number) => (
<FrameItem
Expand All @@ -62,7 +52,6 @@ export default function FrameList() {
/>
))}
</List>
</Scrollbars>
</div>
</div>
);
Expand Down
1 change: 0 additions & 1 deletion editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
61 changes: 1 addition & 60 deletions editor/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==

[email protected]:
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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -2681,11 +2662,6 @@ postcss@^8.2.15, postcss@^8.4.5:
picocolors "^1.0.0"
source-map-js "^1.0.1"

[email protected]:
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"
Expand All @@ -2706,7 +2682,7 @@ process@^0.11.10:
resolved "https://registry.npmjs.org/process/-/process-0.11.10.tgz"
integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI=

[email protected], 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:
[email protected], 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==
Expand Down Expand Up @@ -2750,13 +2726,6 @@ [email protected]:
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"
Expand All @@ -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"
Expand Down Expand Up @@ -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==

[email protected]:
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"
Expand All @@ -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"
Expand Down