Fix layout class display, license adjustment

This commit is contained in:
Francisco Hodge
2018-03-02 14:48:57 -05:00
parent d06baf7222
commit a8c5ffd401
3 changed files with 4 additions and 27 deletions
+3 -2
View File
@@ -67,10 +67,11 @@ class App extends Component {
render() {
let layoutName = this.props.layoutName || "default";
let layout = this.props.layout || KeyboardLayout.getLayout(layoutName);
let themeClass = this.props.theme || `hg-theme-default`;
let themeClass = this.props.theme || "hg-theme-default";
let layoutClass = this.props.layout ? "hg-layout-custom" : `hg-layout-${layoutName}`;
return (
<div className={`hodgefkeyboard ${themeClass} hg-layout-${layoutName}`}>
<div className={`hodgefkeyboard ${themeClass} ${layoutClass}`}>
{layout[layoutName].map((row, index) => {
let rowArray = row.split(' ');