Skip to content

Commit

Permalink
Small refactoring, simplify function
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Oct 3, 2020
1 parent f859772 commit 2d036b5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ui/src/audioplayer/PlayerToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ const Toolbar = ({ id }) => {
return <StarButton record={data} resource={resource} />
}

const PlayerToolbar = ({ id }) => (
<>{id ? <Toolbar id={id} /> : <Placeholder />} </>
)
const PlayerToolbar = ({ id }) => (id ? <Toolbar id={id} /> : <Placeholder />)

export default PlayerToolbar

0 comments on commit 2d036b5

Please sign in to comment.