Create VweKouteAchte display links

This commit is contained in:
2020-12-15 08:50:14 +01:00
parent b01c8e2ab0
commit 3a15fad116
2 changed files with 146 additions and 0 deletions
+27
View File
@@ -21,6 +21,7 @@ import {makeStyles, useTheme} from '@material-ui/core/styles'
import DrawerBar from './drawer-bar'
import DenyeTeks from './denye-teks'
import VweKouteAchte from './vwe-koute-achte'
const drawerWidth = 240
@@ -79,6 +80,22 @@ const useStyles = makeStyles(theme => ({
},
grid: {
marginTop: '1em'
},
koute: {
position: 'absolute',
right: '25px',
top: '8px',
[theme.breakpoints.up('sm')]: {
top: '10px'
}
},
vwe: {
position: 'absolute',
right: '90px',
top: '8px',
[theme.breakpoints.up('sm')]: {
top: '10px'
}
}
}))
@@ -122,6 +139,16 @@ export default function TeksDrawer({miziks, mizik}) {
<Typography noWrap variant='h6'>
{teks.titre}
</Typography>
{teks.liens && teks.liens.length > 0 && (
<div className={classes.vwe}>
<VweKouteAchte isVideo teks={teks} />
</div>
)}
{teks.kouteyAchtey && teks.kouteyAchtey.length > 0 && (
<div className={classes.koute}>
<VweKouteAchte isAudio teks={teks} />
</div>
)}
</>
) : (
<Typography noWrap variant='h6'>