Revert "Change DenyeTeks commonent : add Skeleton feature"

This reverts commit 1711068f72.
This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-05-14 01:37:55 +04:00
parent 1711068f72
commit c27ccf7b17
4 changed files with 40 additions and 173 deletions
+7 -5
View File
@@ -117,11 +117,11 @@ 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)
const [error, setError] = useState(null)
const [error, setError] = useState('')
const [success, setSuccess] = useState('')
const handleClose = (event, reason) => {
@@ -230,7 +230,7 @@ export default function TeksDrawer({teks, anTeks, komante}) {
/>
) : (
<Box sx={{marginTop: '5em'}}>
<DenyeTeks error={error} setError={setError} />
<DenyeTeks {...denyeTeks} />
</Box>
)}
</main>
@@ -241,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
}