Skip to content

Commit

Permalink
starts adding keyboard logo
Browse files Browse the repository at this point in the history
  • Loading branch information
DevStarks committed Apr 17, 2017
1 parent ac1707d commit f5af16d
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 13 deletions.
17 changes: 7 additions & 10 deletions src/Main/Sidebar/Logo/index.jsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
import React, { Component } from 'react';
import React from 'react';
import CSSModules from 'react-css-modules';
import styles from './styles.scss';


import logo from "./images/logo.svg";

class Logo extends Component {
render() {

return (
<div styleName='Logo'>
<div dangerouslySetInnerHTML={{__html: logo}} />
</div>
);
}
function Logo() {
return (
<div styleName='Logo'>
<div dangerouslySetInnerHTML={{__html: logo}} />
</div>
);
}


Expand Down
1 change: 0 additions & 1 deletion src/Main/Toolbox/Keyboard/Keys/Key/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import keybind from './utils/keybind';
import _ from 'lodash';



class Key extends Component {
static propTypes = {
synth: React.PropTypes.object.isRequired,
Expand Down
4 changes: 2 additions & 2 deletions src/Main/Toolbox/Keyboard/Keys/Key/utils/keybind.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const keys = {};
function keybind(note, trigger, release) {
const code = KEYMAP[note];

document.addEventListener('keydown', () => onKeyDown(code, trigger));
document.addEventListener('keyup', () => onKeyUp(code, release));
document.addEventListener('keydown', e => onKeyDown(code, trigger, e));
document.addEventListener('keyup', e => onKeyUp(code, release, e));
}

function onKeyDown(code, cb, e) {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions src/Main/Toolbox/Keyboard/Logo/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';
import CSSModules from 'react-css-modules';
import styles from './styles.scss';


import logo from "./images/logo.svg";

function Logo() {
return (
<div styleName='Logo'>
<div dangerouslySetInnerHTML={{__html: logo}} />
</div>
);
}


export default CSSModules(Logo, styles);
5 changes: 5 additions & 0 deletions src/Main/Toolbox/Keyboard/Logo/styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import "./src/styles/base";

:local(.Logo) {
background-color: #fff;
}

0 comments on commit f5af16d

Please sign in to comment.