diff --git a/src/views/Release.jsx b/src/views/Release.jsx index adc9471..6c183f3 100644 --- a/src/views/Release.jsx +++ b/src/views/Release.jsx @@ -13,13 +13,17 @@ import {Comments} from "../components/Comments"; const Recordings = (props) => { const medias = props.medias ? props.medias: null; + const makeLink = (mbid) => { + return `/song/${mbid}`; + } + let mediasComponent = ; if(medias) { const list= medias.map((media) => ({ 'header': (media.format ? media.format : 'Desconocido') + ' - ' + media.position, 'items': media.recordings.map((recording) => ({ 'id': recording.id, - 'link': props.makeLink(recording.id), + 'link': makeLink(recording.id), 'title': recording.title, 'subtitle': ( {recording.length && @@ -76,22 +80,12 @@ export const ReleaseView = (props) => { } }, [mbid]) - const makeLink = (recordingID) => { - return `/release/${mbid}#${recordingID}`; - } - - const handleNavigateToRecording= (recording) => { - props.history.push(makeLink(recording.id)) - } - return ( {release && + selected={currentRecording}/> }