Skip to content

Commit

Permalink
making the chord lookup take an options object instead of a string name
Browse files Browse the repository at this point in the history
  • Loading branch information
catdad committed Apr 14, 2017
1 parent 762825c commit af15763
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/UkuleleChord/UkuleleChord.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default class UkuleleChord extends PureComponent {

render() {
const { name } = this.props;
const fingering = chords.get(name);
const fingering = chords.get({ name });

return (
<div className="ukulele-chord">
Expand Down
2 changes: 1 addition & 1 deletion src/components/UkuleleChord/chords.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,6 @@ const CHORDS = {
'open': '0000'
};

export function get(name) {
export function get({ name }) {
return CHORDS[name.toLowerCase()];
}

0 comments on commit af15763

Please sign in to comment.