refactor: generaliser stems en kits (type Stems/Acapella+Instru)
This commit is contained in:
@@ -23,7 +23,7 @@ import {formatKuveti} from '../../lib/kuveti'
|
||||
|
||||
import LicenseModal from '../cc/license-modal'
|
||||
import FilesDialog from '../files/files-dialog'
|
||||
import StemsDialog from '../files/stems-dialog'
|
||||
import KitsDialog from '../files/kits-dialog'
|
||||
import {StreamButton} from '../streaming-buttons'
|
||||
import EntegreMizik from './entegre-mizik'
|
||||
import OkiMizik from './oki-mizik'
|
||||
@@ -185,13 +185,13 @@ export default function Teks({parole}) {
|
||||
<LicenseModal license={parole.creativeCommons.toLowerCase()} sourceOriginale={parole.sourceOriginale ?? null} remixes={parole.remixes?.length ? parole.remixes : null} />
|
||||
</Box>
|
||||
)}
|
||||
{(parole?.files || (parole.creativeCommons && parole.stems?.length > 0)) && (
|
||||
{(parole?.files || (parole.creativeCommons && parole.kits?.length > 0)) && (
|
||||
<Box sx={{display: 'flex', flexWrap: 'wrap', justifyContent: 'center', gap: 1}}>
|
||||
{parole?.files && (
|
||||
<FilesDialog files={parole.files} />
|
||||
)}
|
||||
{parole.creativeCommons && parole.stems?.length > 0 && (
|
||||
<StemsDialog stems={parole.stems} />
|
||||
{parole.creativeCommons && parole.kits?.length > 0 && (
|
||||
<KitsDialog kits={parole.kits} />
|
||||
)}
|
||||
</Box>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user