diff --git a/src/components/super-spawner.js b/src/components/super-spawner.js index dbe6e03c67994adb8a5d88c4b63ebb668cb857fd..23842228390f80405980435fb5b5dbadec9d57e0 100644 --- a/src/components/super-spawner.js +++ b/src/components/super-spawner.js @@ -103,7 +103,7 @@ AFRAME.registerComponent("super-spawner", { this.heldEntities.clear(); }, - async onSpawnEvent(e) { + async onSpawnEvent() { const hand = this.data.defaultHand; if (this.cooldownTimeout || !hand) { diff --git a/src/react-components/2d-hud.js b/src/react-components/2d-hud.js index e0df46d68e04da312b4fc011ccdb5a2731db7059..9be94b835658dfd4bd643525f9d228fb28df6245 100644 --- a/src/react-components/2d-hud.js +++ b/src/react-components/2d-hud.js @@ -4,7 +4,7 @@ import cx from "classnames"; import styles from "../assets/stylesheets/2d-hud.scss"; -const TopHUD = ({ muted, frozen, spacebubble, onToggleMute, onToggleFreeze, onToggleSpaceBubble, onSpawnPen }) => ( +const TopHUD = ({ muted, frozen, onToggleMute, onToggleFreeze, onSpawnPen }) => ( <div className={cx(styles.container, styles.top)}> <div className={cx("ui-interactive", styles.panel, styles.left)}> <div @@ -19,14 +19,7 @@ const TopHUD = ({ muted, frozen, spacebubble, onToggleMute, onToggleFreeze, onTo onClick={onToggleFreeze} /> <div className={cx("ui-interactive", styles.panel, styles.right)}> - <div - // className={cx(styles.iconButton, styles.bubble, { [styles.active]: spacebubble })} - // title={spacebubble ? "Disable Bubble" : "Enable Bubble"} - // onClick={onToggleSpaceBubble} - className={cx(styles.iconButton, styles.spawn_pen)} - title={"Drawing Pen"} - onClick={onSpawnPen} - /> + <div className={cx(styles.iconButton, styles.spawn_pen)} title={"Drawing Pen"} onClick={onSpawnPen} /> </div> </div> ); @@ -34,10 +27,8 @@ const TopHUD = ({ muted, frozen, spacebubble, onToggleMute, onToggleFreeze, onTo TopHUD.propTypes = { muted: PropTypes.bool, frozen: PropTypes.bool, - spacebubble: PropTypes.bool, onToggleMute: PropTypes.func, onToggleFreeze: PropTypes.func, - onToggleSpaceBubble: PropTypes.func, onSpawnPen: PropTypes.func };