fix: icônes partage/streaming ne dépendent plus du plafond de 100
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
import {useState, useEffect, forwardRef} from 'react'
|
||||
import Link from 'next/link'
|
||||
import {useParams} from 'next/navigation'
|
||||
import PropTypes from 'prop-types'
|
||||
import AppBar from '@mui/material/AppBar'
|
||||
import Box from '@mui/material/Box'
|
||||
@@ -26,15 +25,12 @@ const Alert = forwardRef(function Alert(props, ref) {
|
||||
return <MuiAlert ref={ref} elevation={6} variant='filled' {...props} />
|
||||
})
|
||||
|
||||
export default function TeksDrawer({paroles}) {
|
||||
const {slug} = useParams()
|
||||
export default function TeksDrawer({paroles, parole}) {
|
||||
const [mobileOpen, setMobileOpen] = useState(false)
|
||||
const [open, setOpen] = useState(false)
|
||||
const [error, setError] = useState('')
|
||||
const [success, setSuccess] = useState('')
|
||||
|
||||
const parole = paroles.find((parole) => parole.slug === slug)
|
||||
|
||||
useEffect(() => {
|
||||
if (error || success) {
|
||||
setOpen(true)
|
||||
@@ -161,4 +157,5 @@ export default function TeksDrawer({paroles}) {
|
||||
|
||||
TeksDrawer.propTypes = {
|
||||
paroles: PropTypes.array,
|
||||
parole: PropTypes.object,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user