diff --git a/components/teks/teks-drawer.js b/components/teks/teks-drawer.js index e01fc66..617399f 100644 --- a/components/teks/teks-drawer.js +++ b/components/teks/teks-drawer.js @@ -1,7 +1,6 @@ import {useEffect, useState, forwardRef} from 'react' import PropTypes from 'prop-types' import Link from 'next/link' -import {useRouter} from 'next/router' import {useSession} from 'next-auth/client' import { @@ -104,7 +103,7 @@ const Root = styled('div')(( [`& .${classes.content}`]: { flexGrow: 1, - padding: theme.spacing(3) + padding: theme.spacing(1) }, [`& .${classes.list}`]: { @@ -150,7 +149,7 @@ const Root = styled('div')(( [`& .${classes.pataje}`]: { position: 'fixed', - top: '85px', + top: '83px', left: '110px', zIndex: 2, [theme.breakpoints.up('sm')]: { @@ -210,7 +209,6 @@ const ExplicitTooltip = Tooltip export default function TeksDrawer({teks, anTeks, komante}) { const [session] = useSession() - const router = useRouter() const isMobile = useMediaQuery('(max-width:800px)') const langArray = langToArray(anTeks) @@ -319,7 +317,7 @@ export default function TeksDrawer({teks, anTeks, komante}) {
- + {anTeks.awtis.map(a => a.alias).join(', ')} @@ -339,12 +337,14 @@ export default function TeksDrawer({teks, anTeks, komante}) { )} - {komante && ( - - )} - {session && ( - - )} + + {komante && ( + + )} + {session && ( + + )} + {anTeks.user && ( @@ -360,7 +360,7 @@ export default function TeksDrawer({teks, anTeks, komante}) { {anTeks.okiMizikID && ( )} - + 0 ? 6 : null}>