@@ -18,7 +18,6 @@ function BibleBookList({
1818 BibleBookListClasses,
1919 bookClasses,
2020 testaments,
21- showTitle,
2221 sortFirstNT,
2322} ) {
2423 const [ checkState , setCheckState ] = useState ( ! showInactive ) ;
@@ -99,7 +98,7 @@ function BibleBookList({
9998 { testamentList . map ( ( el , index ) => {
10099 return (
101100 < BookList
102- title = { showTitle ? el . title : '' }
101+ title = { el . title }
103102 bookList = { el . bookList }
104103 showInactive = { ! checkState }
105104 onClickBook = { onClickBook }
@@ -119,16 +118,15 @@ function BibleBookList({
119118}
120119
121120BibleBookList . defaultProps = {
122- showCheckbox : false ,
121+ showCheckbox : true ,
123122 sortFirstNT : false ,
124123 testaments : 'all' ,
125- titleOT : 'Old Testament ' ,
126- titleNT : 'New Testament ' ,
124+ titleOT : '' ,
125+ titleNT : '' ,
127126 showInactive : true ,
128- onClickBook : ( ) => { } ,
127+ onClickBook : ( bookId ) => { } ,
129128 labelForCheckbox : 'Show only existing books' ,
130129 titleBooks : { } ,
131- BibleBookListClasses : { } ,
132130 availableBookList : [ ] ,
133131} ;
134132
@@ -138,8 +136,6 @@ BibleBookList.propTypes = {
138136 titleNT : PropTypes . string ,
139137 /** block header of "Old Testament" */
140138 titleOT : PropTypes . string ,
141- /** show block header */
142- showTitle : PropTypes . bool ,
143139 /** when true, show first New Testament, second - Old Testament */
144140 sortFirstNT : PropTypes . bool ,
145141 /** array of existing bookId's */
0 commit comments