Skip to content
Snippets Groups Projects
Commit fff303ae authored by Kevin Lee's avatar Kevin Lee
Browse files

lint fixes

parent 1505caec
No related branches found
No related tags found
No related merge requests found
...@@ -103,7 +103,7 @@ AFRAME.registerComponent("super-spawner", { ...@@ -103,7 +103,7 @@ AFRAME.registerComponent("super-spawner", {
this.heldEntities.clear(); this.heldEntities.clear();
}, },
async onSpawnEvent(e) { async onSpawnEvent() {
const hand = this.data.defaultHand; const hand = this.data.defaultHand;
if (this.cooldownTimeout || !hand) { if (this.cooldownTimeout || !hand) {
......
...@@ -4,7 +4,7 @@ import cx from "classnames"; ...@@ -4,7 +4,7 @@ import cx from "classnames";
import styles from "../assets/stylesheets/2d-hud.scss"; 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(styles.container, styles.top)}>
<div className={cx("ui-interactive", styles.panel, styles.left)}> <div className={cx("ui-interactive", styles.panel, styles.left)}>
<div <div
...@@ -19,14 +19,7 @@ const TopHUD = ({ muted, frozen, spacebubble, onToggleMute, onToggleFreeze, onTo ...@@ -19,14 +19,7 @@ const TopHUD = ({ muted, frozen, spacebubble, onToggleMute, onToggleFreeze, onTo
onClick={onToggleFreeze} onClick={onToggleFreeze}
/> />
<div className={cx("ui-interactive", styles.panel, styles.right)}> <div className={cx("ui-interactive", styles.panel, styles.right)}>
<div <div className={cx(styles.iconButton, styles.spawn_pen)} title={"Drawing Pen"} onClick={onSpawnPen} />
// 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> </div>
</div> </div>
); );
...@@ -34,10 +27,8 @@ const TopHUD = ({ muted, frozen, spacebubble, onToggleMute, onToggleFreeze, onTo ...@@ -34,10 +27,8 @@ const TopHUD = ({ muted, frozen, spacebubble, onToggleMute, onToggleFreeze, onTo
TopHUD.propTypes = { TopHUD.propTypes = {
muted: PropTypes.bool, muted: PropTypes.bool,
frozen: PropTypes.bool, frozen: PropTypes.bool,
spacebubble: PropTypes.bool,
onToggleMute: PropTypes.func, onToggleMute: PropTypes.func,
onToggleFreeze: PropTypes.func, onToggleFreeze: PropTypes.func,
onToggleSpaceBubble: PropTypes.func,
onSpawnPen: PropTypes.func onSpawnPen: PropTypes.func
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment