Skip to content

Commit

Permalink
Add dom7 chords + more visibility (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilgourgouillon authored Oct 28, 2024
1 parent efb5eee commit 0729d36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/components/ChordsList.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Chord } from '../config';
import { chordToString } from '../services/chordService';

export const ChordsList = ({
chords,
Expand All @@ -18,7 +17,7 @@ export const ChordsList = ({
className="flex flex-col md:flex-row md:gap-7 text-[35px] md:text-[75px] mb-6 font-bold cursor-pointer select-none"
>
{chords.map((chord: Chord, index: number) => (
<div key={index}>{chordToString(chord)}</div>
<div className='flex flex-row' key={index}><div>{chord.note}</div><div className='text-[25px] md:text-[55px] text-neutral-500'>{chord.chordType}</div></div>
))}
</div>
</>
Expand Down
2 changes: 1 addition & 1 deletion src/config/Chords.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Note } from '.';

export const chordTypes = ['M', 'm', 'maj7', 'min7'] as const;
export const chordTypes = ['M', 'm', 'maj7', 'min7', 'dom7'] as const;

export type ChordType = (typeof chordTypes)[number];

Expand Down

0 comments on commit 0729d36

Please sign in to comment.