Fix canAutoTranslate proptype

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-05-17 00:29:09 +04:00
parent 44e0329c64
commit 8979462abd
+3 -2
View File
@@ -421,11 +421,12 @@ function EkriTeks({canAutoTranslate, selectedTeks, setSelectedTeks}) {
}
EkriTeks.defaultProps = {
selectedTeks: null
selectedTeks: null,
canAutoTranslate: null
}
EkriTeks.propTypes = {
canAutoTranslate: PropTypes.bool.isRequired,
canAutoTranslate: PropTypes.bool,
selectedTeks: PropTypes.object,
setSelectedTeks: PropTypes.func.isRequired,
}