fix: rename StreamButton to StreamButtonComponent
Déploiement FRONT PROD / check (push) Successful in 2m7s
Déploiement FRONT PROD / deploy (push) Successful in 22s

This commit is contained in:
2026-06-22 13:12:14 +04:00
parent 5a6273e9e3
commit 6121a2ca4a
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ import KeyboardBackspaceIcon from '@mui/icons-material/KeyboardBackspace'
import VerifiedIcon from '@mui/icons-material/Verified'
import {formatKuveti} from '../../lib/kuveti'
import {StreamButton} from '../streaming-buttons'
import {PLATFORM_CONFIG, StreamButtonComponent} from '../streaming-buttons'
import AwtisBiyografi from './awtis-biyografi'
import MizikLyen from './mizik-lyen'
@@ -141,7 +141,7 @@ export default function AwtisDetay({anAwtis}) {
</Typography>
<Box sx={{display: 'flex', flexWrap: 'wrap', gap: 1}}>
{titrePhare.streamAudio.map((lyen, i) => (
<StreamButton key={i} lyen={lyen} />
<StreamButtonComponent key={i} lyen={lyen} />
))}
</Box>
</CardContent>
+1 -1
View File
@@ -15,7 +15,7 @@ export const PLATFORM_CONFIG = {
Soundcloud: {label: 'SoundCloud', bg: '#FF5500', color: '#fff', Icon: Soundcloud},
}
export function StreamButton({lyen}) {
export function StreamButtonComponent({lyen}) {
const config = PLATFORM_CONFIG[lyen.plateforme] ?? {label: lyen.plateforme, bg: '#555', color: '#fff', Icon: null}
const PlatformIcon = config.Icon
return (
+2 -2
View File
@@ -20,7 +20,7 @@ import {formatKuveti} from '../../lib/kuveti'
import LicenseModal from '../cc/license-modal'
import FilesDialog from '../files/files-dialog'
import {StreamButton} from '../streaming-buttons'
import {StreamButtonComponent} from '../streaming-buttons'
import EntegreMizik from './entegre-mizik'
import OkiMizik from './oki-mizik'
import DiferansDialog from './diferans-dialog'
@@ -225,7 +225,7 @@ export default function Teks({parole}) {
</Typography>
<Box sx={{display: 'flex', flexWrap: 'wrap', justifyContent: 'center', gap: 1}}>
{parole.streamAudio.map((lyen, i) => (
<StreamButton key={i} lyen={lyen} />
<StreamButtonComponent key={i} lyen={lyen} />
))}
</Box>
</Box>