mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2026-04-30 00:00:04 +08:00
Fix layout class display, license adjustment
This commit is contained in:
@@ -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(' ');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user