Small refactoring, simplify function
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user