Small refactoring, simplify function
This commit is contained in:
parent
f859772723
commit
2d036b5966
1 changed files with 1 additions and 3 deletions
|
|
@ -23,8 +23,6 @@ const Toolbar = ({ id }) => {
|
||||||
return <StarButton record={data} resource={resource} />
|
return <StarButton record={data} resource={resource} />
|
||||||
}
|
}
|
||||||
|
|
||||||
const PlayerToolbar = ({ id }) => (
|
const PlayerToolbar = ({ id }) => (id ? <Toolbar id={id} /> : <Placeholder />)
|
||||||
<>{id ? <Toolbar id={id} /> : <Placeholder />} </>
|
|
||||||
)
|
|
||||||
|
|
||||||
export default PlayerToolbar
|
export default PlayerToolbar
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue