Cleaning technical debt (#192)

* abstract Space component to switch out Map

* basic viewing possible

* restructure components dir

* all jsx --> js

* App.jsx --> App.js

* comment out 3d for now
This commit is contained in:
Lachlan Kermode
2021-01-19 22:22:12 +01:00
committed by GitHub
parent 745953a435
commit e99398ceab
75 changed files with 121 additions and 745 deletions

View File

@@ -0,0 +1,16 @@
import React from "react";
const CoverIcon = ({ isActive, isDisabled, onClickHandler }) => {
let classes = isActive ? "action-button enabled" : "action-button";
if (isDisabled) {
classes = "action-button disabled";
}
return (
<button className={classes} onClick={onClickHandler}>
<i className="material-icons">info</i>
</button>
);
};
export default CoverIcon;