Skip to content

Commit

Permalink
Merge pull request #139 from Exabyte-io/hotfix/interactive-button
Browse files Browse the repository at this point in the history
Hotfix/interactive-button
  • Loading branch information
timurbazhirov committed Nov 14, 2023
2 parents d8020a7 + abe3c85 commit 8ba0e36
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/components/ThreeDEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import SquareFootIcon from "@mui/icons-material/SquareFoot";
import SwitchCamera from "@mui/icons-material/SwitchCamera";
import ThreeDRotation from "@mui/icons-material/ThreeDRotation";
import { StyledEngineProvider } from "@mui/material/styles";
import setClass from "classnames";
import $ from "jquery";
import PropTypes from "prop-types";
import React from "react";
Expand Down Expand Up @@ -663,13 +662,6 @@ export class ThreeDEditor extends React.Component {
return toolbarConfig;
}

/** Helper to construct a compound CSS classname based on interactivity state */
getThreeDEditorClassNames() {
const { isInteractive } = this.state;
const isInteractiveCls = isInteractive ? "" : "non-interactive";
return setClass("materials-designer-3d-editor", isInteractiveCls);
}

onThreejsEditorModalHide(material) {
let { isThreejsEditorModalShown } = this.state;
isThreejsEditorModalShown = !isThreejsEditorModalShown;
Expand Down Expand Up @@ -708,7 +700,7 @@ export class ThreeDEditor extends React.Component {
const { isInteractive } = this.state;

return (
<div className={this.getThreeDEditorClassNames()}>
<div style={{ position: "relative" }}>
{this.renderCoverDiv()}
<IconsToolbar
toolbarConfig={this.getToolbarConfig()}
Expand Down

0 comments on commit 8ba0e36

Please sign in to comment.