Edit TeksDrawer component and adapt pages/paroles

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-05-08 23:50:19 +04:00
parent 2af9027f8d
commit a659013d71
2 changed files with 18 additions and 10 deletions
+10 -5
View File
@@ -9,7 +9,8 @@ import {
CssBaseline,
Drawer,
Hidden,
IconButton
IconButton,
Box
} from '@mui/material'
import KeyboardBackspaceIcon from '@mui/icons-material/KeyboardBackspace'
@@ -116,7 +117,7 @@ const Root = styled('div')((
const drawerWidth = 240
export default function TeksDrawer({teks, anTeks, komante}) {
export default function TeksDrawer({teks, anTeks, komante, denyeTeks}) {
const theme = useTheme()
const [esMobilOuve, meteEsMobilOuve] = useState(false)
const [open, setOpen] = useState(false)
@@ -228,7 +229,9 @@ export default function TeksDrawer({teks, anTeks, komante}) {
handleClose={handleClose}
/>
) : (
<DenyeTeks {...teks} />
<Box sx={{marginTop: '5em'}}>
<DenyeTeks {...denyeTeks} />
</Box>
)}
</main>
</Root>
@@ -238,10 +241,12 @@ export default function TeksDrawer({teks, anTeks, komante}) {
TeksDrawer.propTypes = {
teks: PropTypes.array.isRequired,
anTeks: PropTypes.object,
komante: PropTypes.array
komante: PropTypes.array,
denyeTeks: PropTypes.array
}
TeksDrawer.defaultProps = {
anTeks: null,
komante: null
komante: null,
denyeTeks: null
}