diff --git a/components/teks/teks.js b/components/teks/teks.js index d3a9d00..ec4c0fc 100644 --- a/components/teks/teks.js +++ b/components/teks/teks.js @@ -3,8 +3,7 @@ import {useEffect, useState} from 'react' import PropTypes from 'prop-types' import Box from '@mui/material/Box' -import Tabs from '@mui/material/Tabs' -import Tab from '@mui/material/Tab' +import Chip from '@mui/material/Chip' import Typography from '@mui/material/Typography' import Tooltip from '@mui/material/Tooltip' import {useMediaQuery} from '@mui/material' @@ -13,8 +12,6 @@ import slugify from 'slugify' import {styled} from '@mui/material/styles' import ExplicitIcon from '@mui/icons-material/Explicit' -import ArrowBackIosNewIcon from '@mui/icons-material/ArrowBackIosNew' -import ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos' import Image from 'next/image' @@ -121,6 +118,7 @@ export default function Teks({parole}) { const coverFmt = formatKuveti(parole.couverture) const [tab, setTab] = useState(0) const [, setCurrentTrack] = useCurrentTrack() + const options = ['Transcription', ...langArray.map(({title}) => title)] useEffect(() => { const isBrowser = () => typeof window !== 'undefined' @@ -230,39 +228,19 @@ export default function Teks({parole}) { )} - setTab(value)} - > - - {langArray.map(({title}) => ( - + + {options.map((label, index) => ( + setTab(index)} + /> ))} - + {tab === 0 && ( <> {parole.langueSource && parole.langueSource !== 'ka' && (