Use a better notation for exporting JS components and functions

This commit is contained in:
Deluan
2020-11-10 19:27:28 -05:00
parent 8a44f61189
commit 9d2426a601
37 changed files with 112 additions and 188 deletions
+1 -2
View File
@@ -13,7 +13,7 @@ const useStyles = makeStyles({
},
})
const PlayButton = ({ record, color, size, ...rest }) => {
export const PlayButton = ({ record, color, size, ...rest }) => {
const classes = useStyles({ color })
let extractSongsData = function (response) {
const data = response.data.reduce(
@@ -64,4 +64,3 @@ PlayButton.propTypes = {
PlayButton.defaultProps = {
size: 'small',
}
export default PlayButton