@@ -29,13 +29,9 @@ function BibleBookList({
2929 } ;
3030 } ) ;
3131
32- const currentBookListOT = currentBookList . filter (
33- ( el ) => el . categories === "bible-ot"
34- ) ;
32+ const currentBookListOT = currentBookList . filter ( ( el ) => el . categories === 'bible-ot' ) ;
3533
36- const currentBookListNT = currentBookList . filter (
37- ( el ) => el . categories === "bible-nt"
38- ) ;
34+ const currentBookListNT = currentBookList . filter ( ( el ) => el . categories === 'bible-nt' ) ;
3935 const handleChange = ( ) => {
4036 setCheckState ( ( prev ) => ! prev ) ;
4137 } ;
@@ -48,7 +44,7 @@ function BibleBookList({
4844 let testamentList = [ ] ;
4945
5046 switch ( testaments ) {
51- case "nt" :
47+ case 'nt' :
5248 testamentList = [
5349 {
5450 title : titleNT ,
@@ -60,7 +56,7 @@ function BibleBookList({
6056 }
6157 break ;
6258
63- case "ot" :
59+ case 'ot' :
6460 testamentList = [
6561 {
6662 title : titleOT ,
@@ -71,7 +67,7 @@ function BibleBookList({
7167 showCheckbox = allBooksIsSet ( currentBookListOT ) ;
7268 }
7369 break ;
74- case " all" :
70+ case ' all' :
7571 testamentList = [
7672 { title : titleOT , bookList : currentBookListOT } ,
7773 { title : titleNT , bookList : currentBookListNT } ,
@@ -94,17 +90,11 @@ function BibleBookList({
9490 classes = { {
9591 label : BibleBookListClasses ?. label ,
9692 } }
97- control = {
98- < Checkbox
99- checked = { checkState }
100- onChange = { handleChange }
101- color = "primary"
102- />
103- }
93+ control = { < Checkbox checked = { checkState } color = "primary" onChange = { handleChange } /> }
10494 label = { labelForCheckbox }
10595 />
10696 ) : (
107- ""
97+ ''
10898 ) ;
10999
110100 return (
@@ -113,18 +103,18 @@ function BibleBookList({
113103 { testamentList . map ( ( el , index ) => {
114104 return (
115105 < BookList
116- title = { el . title }
106+ bookClasses = { bookClasses }
117107 bookList = { el . bookList }
118- showInactive = { ! checkState }
119- onClickBook = { onClickBook }
120- selectedBookId = { selectedBookId }
121108 bookListClasses = { {
122109 title : BibleBookListClasses ?. title ,
123110 book : BibleBookListClasses ?. book ,
124111 bookList : BibleBookListClasses ?. bookList ,
125112 } }
126- bookClasses = { bookClasses }
127113 key = { index }
114+ onClickBook = { onClickBook }
115+ selectedBookId = { selectedBookId }
116+ showInactive = { ! checkState }
117+ title = { el . title }
128118 />
129119 ) ;
130120 } ) }
@@ -135,18 +125,18 @@ function BibleBookList({
135125BibleBookList . defaultProps = {
136126 showCheckbox : true ,
137127 sortFirstNT : false ,
138- testaments : " all" ,
139- titleOT : "" ,
140- titleNT : "" ,
128+ testaments : ' all' ,
129+ titleOT : '' ,
130+ titleNT : '' ,
141131 showInactive : true ,
142132 onClickBook : ( bookId ) => { } ,
143- labelForCheckbox : " Show only existing books" ,
133+ labelForCheckbox : ' Show only existing books' ,
144134 titleBooks : { } ,
145135 availableBookList : [ ] ,
146136} ;
147137
148138BibleBookList . propTypes = {
149- testaments : PropTypes . oneOf ( [ " all" , "nt" , "ot" ] ) ,
139+ testaments : PropTypes . oneOf ( [ ' all' , 'nt' , 'ot' ] ) ,
150140 /** block header of "New Testament" */
151141 titleNT : PropTypes . string ,
152142 /** block header of "Old Testament" */
0 commit comments