Skip to content

Commit

Permalink
Merge pull request #179 from iq-eq-us/hide_export
Browse files Browse the repository at this point in the history
feat: Hide export library button until chords are downloaded
  • Loading branch information
COChara authored Sep 12, 2023
2 parents 5dea164 + e2f3fc9 commit 9a3dad9
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/pages/manager/components/exportLibrary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,15 @@ export function Export(): ReactElement {

return (
<React.Fragment>
<button
className="sc-bYwzuL text-white rounded p-2 mb-4 inline-block ml-2 bg-[#333] hover:bg-[#3b3b3b] active:bg-[#222]"
color="pink"
onClick={() => exportChordMapLibrary()}
>
Export Library{' '}
</button>
{downloadedChords.length > 0 && (
<button
className="sc-bYwzuL text-white rounded p-2 mb-4 inline-block ml-2 bg-[#333] hover:bg-[#3b3b3b] active:bg-[#222]"
color="pink"
onClick={() => exportChordMapLibrary()}
>
Export Library{' '}
</button>
)}
</React.Fragment>
);
}

0 comments on commit 9a3dad9

Please sign in to comment.